- Home /
Play part of animation
Say I have an object with an animation. If I want to play the animation I use
transform.animation.Play("Attack01");
This is going to play the full animation. How can I play for example, only half of it?
Comment
Best Answer
Answer by Owen-Reynolds · May 08, 2013 at 12:43 PM
If you know you always want to play a particular half, create a new animation (Attack01A?) in the Animation Inspector, and select only the frames you want. Unity is very happy to have multiple animations share and even overlap frames.
Your answer
Follow this Question
Related Questions
Help With Animation Play Back - Reverse 1 Answer
Animated FBX: Model Rest Position 0 Answers
Playing an animation 2 Answers
Why is Animation Not Playing in Reverse? 2 Answers
Is it possible to add blendshape animation through script? 2 Answers