I’m learning the newer animation system for Unity. I actually preferred the simplicity of the old system but its time to update I guess. I set up a simple state machine and got my looped running animation working when I press the arrows. But I want to set the wrap mode to ping pong like in the old legacy animation system. I can not find a simple way to do this. Is there a setting in the inspector or some script variable I can set?
I haven’t tested this out, so just some ideas:
Unity 5 doesn’t seem to expose the wrap mode parameters in the inspector, but you might be able to set them via script.
Other than that it is very easy to build your own PingPong like state machine. Make a state that plays your animation at speed 1 and a copy that plays the animation at speed -1. Then just make transitions between them with an exit time that matches the clip time. (Not sure, but I think there is even an option to just say the animation must play completely before any transition happens).