Unlock Animation Secrets: Mastering Unity's Motion Time in Animator States

This page is dedicated to a little known, but very powerful feature of Animator Controller States: MotionTime What Does It Do? According to Unity , Motion Time is described as: "The time used to play the motion for this state. Enable Parameter to control the motion time with a custom value from a script." ....That is not a great description of what this is capable of. Admittedly, this is a concept that is hard to put into words. A Slightly Better Description Simply put, this feature will allow code to directly manipulate what frame the Animation State is playing in the Animation Clip, assigned. Put another way: We can bypass an Animation Clip's normal playback control, allowing code to take control of playback. Put ANOTHER way: We can use code to scrub through an Animation Clip, just like you can drag the current frame around in an Animation tab. Once setup, you can manipulate the Motion Time float in the Animator to advance, or even reverse, the Animation Clip in the S...