- Home /
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...
Comment
Best Answer
Answer by AVividLight · Aug 14, 2011 at 09:14 PM
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
Answer by Inan-Evin · Aug 14, 2011 at 08:38 PM
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.
Your answer