Animation Loop (34663)

Hey,

How can i do a animation Loop?

Thanks

Thanks for this information. You guys are the best! <a href="https://www.wildthingzllc.com">www.wildthingzllc.com</a>

2 Answers

2

UPDATE - EVEN NEWER VERSION (2020.3.30f LTS)

Unity now expose this property directly in the Inspector. Select the AnimationClip asset in the Project window, and check the Loop Time box in the Inspector:


UPDATE - NEW VERSION

Select the Animation Clip in the Project window, then look at the Inspector for a parameter called Loop Time and make sure it’s ticked. (in the image below the animation won’t loop)

Notice that there is no visible and easy way now to change a clip’s Wrap Mode in the Editor (though there’s an easy API call for that).
In order to change a clip’s Wrap Mode you have to change the Inspector into Debug Mode. Then, make sure the Animation Clip is selected and you’ll see the Inspector now have a drop-down menu for changing the clip’s Wrap Mode (in the image below the wrap mode is marked with yellow while the loop option is marked with red)


##DEPRECATED - OLD VERSION
Go to the animation and set it as looping .In the Animation window look at the bottom for something that should say ‘Default’ - it’s a drop-down menu with looping options (Loop starts the animation over, PingPong plays it back and forth, Clamp Forever freezes the animation at the state of the last frame etc.)

This was exactly what I was looking for. Thank you.

Thanks! I thought there would be an option to loop the animation, but I was looking in all the wrong places for it

There isn't any looping options in the Animation window at all. -1 if I could.

@Umai Look at the answer's date before you judge it. This was written for an older version of Unity. :) I'll update the answer for newer versions.

Updated the answer for the new version.

Answer in 2021 will be a bit different…

Seems to me that you have to go to Animation Import Settings in the Inspector… Theres Import Animation and a Wrap Mode. Set that to Loop.
inspector of animation import