Question by
Caprani · Jan 26, 2018 at 04:18 AM ·
animationanimatoranimator controller
GetComponent().StopPlayback(); Does nothing?
I have gone through a few different posts and haven't found exactly what I am looking for, apologies if its there and I am being an idiot.
So I am just testing some things at the moment and for some reason " GetComponent().StopPlayback();" doesn't seem to do what the documentation says it should.
// Use this for initialization
IEnumerator Start()
{
GetComponent<Animator>().Play("Mushroom_Bounce", -1, 0.0f);
yield return new WaitForSeconds(5);
GetComponent<Animator>().StopPlayback();
}
// Update is called once per frame
void Update () {
}
So technically shouldnt this play a looped animation for 5 seconds then stop?
Comment
Your answer
Follow this Question
Related Questions
Animator vs Animation Clip via Scripting 0 Answers
How to Apply Animation to Player 0 Answers
Opening Cutscene 0 Answers
NEED HELP ANIMATING PLAYER MOVEMENT 0 Answers
2D Animation Problem. 0 Answers