🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Animation (Unity Scripting)

Started by
0 comments, last by bezakobu 3 years, 3 months ago

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?

https://homemadegaytubeporn.com/

This topic is closed to new replies.

Advertisement