- Home /
Playing Spine Animation at Timescale zero
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.
Answer by hitarthdoc1994 · Mar 13, 2021 at 04:12 PM
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
uh, oh... Thank you for the reply. I completely forgot about this one, lol. I'll put it as the correct answer. Hopefully it'll help someone that might face same problem with me :)