Wait for Queued Animation to finish

Hey Everyone,

What is the best way to approach waiting for queued animations to finish and then following it up with a statement. In other words, i’m trying to wait for all the animations to play and then perform a statement.

    anim.Play("wave");
    anim.PlayQueued("clap", QueueMode.CompleteOthers);
    anim.PlayQueued("jump", QueueMode.CompleteOthers);

    Debug.Log("all animation has finished!");

Any help will be appreciated!

Cheers,

If this order stays the same you could put an event on the last frame of the jump animation.

I’f it’s different you could yield for the time all animations take in total until calling your debug.