Quick note to self…
When using legacy animations in Unity, make sure you set them to loop (if that’s what you need), otherwise they play once & stop. Spent more time trying to figure this out than I’d like to admit.
Pretty simple to do:
animationController = GetComponentInChildren(); animationController.wrapMode = WrapMode.Loop;
You might want to check that animationController isn’t NULL before you update wrapMode.