Set Normalized time on an animation at runtime

Hi there,

Just wondering if theres a way to control the normalized time of an animation at runtime with the new animation system. I’ve searched around but only found some old workarounds that seem like they might have been resolved.

Thanks,
Pete

You have two function depending if you want to use normalized time or fixed time
https://docs.unity3d.com/ScriptReference/Experimental.Director.IAnimatorControllerPlayable.Play.html
https://docs.unity3d.com/ScriptReference/Experimental.Director.IAnimatorControllerPlayable.PlayInFixedTime.html

So with these two function you can play any state from your controller
If you want to change the time of the currently playing state set parameter stateNameHash to 0 and set the time as you wish

Is there any bug with speed multiplier as it doesnt work if it isnt 1 in Unity 2017.2

Is there a way to set the time with CrossFade? Seems setting the time disables CrossFade.