Question by
vonbetelgeuse · Feb 22, 2016 at 05:42 PM ·
c#scripting problemscripting beginner
Play animation grow once, then play animation rotate on continuous loop.
Hi guys,
I'm trying to figure out how to script a sequence of animations.
I want the animation "grow" to play once and then be followed by "rotate" playing on a continuous loop.
At the moment I have the following and both "grow" and "rotate" play once and then stop, I'm unsure how to add the loop continuously aspect to "rotate".
I'm total script newbie and really appreciate any help given.
// *** Additional animation code
Animation[] animationComponents = GetComponentsInChildren<Animation>();
foreach (Animation component in animationComponents)
{
component.Play();
}
// *** end of animation code
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612065217im_/https://answers.unity.com/themes/thub/images/avi.jpg)