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…

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 .

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