Question by
Taipan Studios · Jan 23, 2016 at 02:33 PM ·
animationloop animaiton
Animation looping issue
#pragma strict
var Health = 100;
function Start () {
animation["Horse_Dead"].layer = 1;
animation["Horse_Dead"].wrapMode = WrapMode.Once;
}
function Update () {
if (Health == 0);
animation.Play("Horse_Dead");
}
That's my code for the animation and I have loop time turned of. p.s. It is a legacy animation
Comment
Answer by ChristianBlandford · Jan 24, 2016 at 10:03 AM
hmm... one of the problems is that you are playing your animation which is inside the function Update, which means every frame. This may be why it is looping, but not to do with the animation itself. I am currently having the same issue :(
Your answer
Follow this Question
Related Questions
How to differ loop animation for the instances of Game Object 0 Answers
Animation not loopping 0 Answers
How do you loop an animation without entity reverting to scene view position in between? 0 Answers
Make something happen at a specific time in a looping animation 1 Answer
How can I start an animation's loop from a choosen frame? 0 Answers