- Home /
How to get an object move by itself 2
Right im looking to make my windmill move by itself, not with a trigger or anything just to move, I have this code..
function Start(){
animation.Play("ANIMATION NAME");
}
But how do i make it loop?
Answer by Outlaw Lemur · Sep 06, 2012 at 02:20 AM
See http://answers.unity3d.com/questions/204331/animation-loop.html, or just go to the animation and enable looping
Answer by vinod.kapoor · Sep 06, 2012 at 05:27 AM
while importing the fbx you can set the animation to loop under split animation option.
OR
you can use : animation["animation name"].wrapmode = Wrapmode.Loop;
in the Start() function
Your answer
Follow this Question
Related Questions
Help With Animation Play Back - Reverse 1 Answer
Play animation C# 1 Answer
Why is Animation Not Playing in Reverse? 2 Answers
Can the animation editor create local rotational data? 3 Answers
starting the animation from a different game object 3 Answers