Question by
juliocesarjedi · Sep 25, 2019 at 01:09 AM ·
c#animationarrayanimationsanimation clip
How to play all the animations array inside animation component
Hi, im trying to play all the animations inside the animation's array that belongs to the animation component, with the following extract of the code i can only play the first of them, please help me, thank you so much.
void Start()
{
anim = GetComponent<Animation>();
foreach (AnimationState state in anim)
{
anim.Play();
}
}
Comment