Unity 3 animation replay?

Hi, I made animation in unity 3D but I want it to replay.I have Play Automatically ON and culling Type: allways animate. My animation plays only one time…

2 Answers

2

Do something like this :

var a = 0;
 function Update(){

if(a==0){
animation.play();
}
}

so it will always check if it’s 0 and play it all the time till a is 1 .

put this to the object which you want to animate, you can do something like that animation.Play("nameoftheanimation"); but before this try the answer of GBStudios,it's more useful.

Hey RockDude,

Click the animation in the inspector, and click “AnimationWrapMode”… There is an option called “loop”, thats what you want.

Hope I helped ∆ Gibson