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?

See Animation Loop - Questions & Answers - Unity Discussions, or just go to the animation and enable looping

while importing the fbx you can set the animation to loop under split animation option.


you can use : animation[“animation name”].wrapmode = Wrapmode.Loop;

in the Start() function