How to add animations to a queue and play all animations in the queue?

Hi guys,
how can I add animations to a queue and play animations in that queue? I can not find any tutorial for this on the internet. I think it is very simple but I can’t find any video talking about how to do it. Can someone help me with this? Thank you so much

So you’ll need several things for this to work:

  1. Have a list that holds the animations to be played (this can be the names of the animation). Add new Animations to that list.
  2. Find out if an Animation is currently running. Actually that seems to be quit tricky. One snippet I found is:
bool AnimatorIsPlaying(){     return animator.GetCurrentAnimatorStateInfo(0).length >            animator.GetCurrentAnimatorStateInfo(0).normalizedTime;  }

But you can Google for other mechanics.
3. Whenever the above code is return false and the count of your list is > 0 A) Trigger the new Animation with the name in 0 position from your list and B) Remove the triggered animation from your List of Animations.