Animation Enhancement

Is it possible to add one extra method to the AnimationComponent to play just one frame of animation?
So that I can use something like
_animation.Play(“LookUp_45Degrees”, 30);

Where 30 is the frame number in skeletal animation. Suggesting the pitch is about 30 degrees.

AnimationComponent.Play returns you a PlayingAnimation object.
You can then set its frame using CurrentTime, and set TimeFactor to 0 so that it stay on that specific time/frame.

Hope that solves your problem!

1 Like

Thank you, this is helping. I’ll try!

Look to the most right soldier. Plays one frame of animation. This is exactly what I wanted. : Thnx a lot. :slight_smile:

Glad it helped!
Good luck with your project!