Advertisement

Animation (Unity Scripting)

Started by March 19, 2021 03:25 AM
0 comments, last by bezakobu 3 years, 6 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