- Home /
How do I Loop an Imported Animation?
I have tried lots of things, but I imported an animation I made for an enemy, and I was told to change the wrap mode, but that whole section is grayed out and I can't change anything. Any help?
Comment
Answer by commodore · Oct 09, 2012 at 06:59 PM
You can do it through code
private var yourAnim : AnimationState;
function Start()
{
yourAnim = animation["yourAnim"];
yourAnim.wrapMode = WrapMode.Loop;
}