Hi, I have a spine animation that I want to play at pause menu where I set time scale to zero. Can I play this animation when time scale is zero, like Animator do? I tried to search it but can’t find anything related to it.
1 Like
Sorry for the necro, but thought someone might need it sometime. Google thinks this is still relevant.
Added the unscaled time code from Skeleton Graphic to Skeleton Animation.
It’s 2 lines.
Add the unscaledTime variable in Skel Animation,
public bool unscaledTime = false;
And replace the
Update (Time.deltaTime);
with,
Update(unscaledTime ? Time.unscaledDeltaTime : Time.deltaTime);
You will have to use the Debug Inspector to change this value or change the Skel Animation’s Inspector to show this change.
@Crimx
Whether you are using Skeleton Animation or Skeleton Graphic, the component would have an “unscaled time” toggle in the inspector - Tick it and you’re good!