Ugh, with the new version of Unity, 2.6, they took out the ability to automaticly loop animations, but still play automaticly, and now, I need that feature, so, I now have to loop via scripts. Anyway, what would I use to loop an animation? ![]()
I don’t have an animated model so I am not completely sure this will work, but I have checked the scripting reference and it seems that this might do the trick:
WrapMode.Loop
This should loop your animation nicely
.
Hmm, but how would I put it into the script so it works?
function Update()
{
WrapMode.Loop;
animation.Play;
}
That dosent work…
Ok, figured it out!
function Start
{
animation.wrapMode = WrapMode.Loop;
animation.Play("Intro");
}
That does it. ![]()
Cool, thanks for teaching me about that, lol.