Hi!
I want the animation to play always different, one and the same is boring.
Have an array of animation clips downloaded from resources
I try to randomly select a clip from the list and play it back, but nothing works
here's what I found
//Players.GetComponent<Animation>().clip = animationClip[0]; take the first one from the list for example
//Players.GetComponent<Animation>().clip.legacy = true;
//Players.GetComponent<Animation>().AddClip(animationClip[0], animationClip[0].name);
//Players.GetComponent<Animation>().Play(animationClip[0].name);
But nothing works, what can I do?