Hello;
Is it possible (by code) to play an animation but not entirely?
For example, if the animation has 20 keyframes, is it possible to play that animation but starting at the keyframe 10?
Thank you!
Hello;
Is it possible (by code) to play an animation but not entirely?
For example, if the animation has 20 keyframes, is it possible to play that animation but starting at the keyframe 10?
Thank you!
I believe it is as simple as saying animator.Play(“Walk”, 0, .5f);
the first part is the animation name, the second is the layer, and the third is the normalized time at which you want to start the animation. In my example, it would, in fact, start at “Keyframe 10” out of 20 because I specified .5f which would be half the time
Again, thats what I think it is. I hope im right lol
Thank you! I didn’t try it in Unity because I changed the way I’ll do my animations, so I no longer need to start an animation from one specific point. But thank you for your reply!