I think we added an unscaled time mode to SkeletonGraphic a while back. Let me check.
24 Jul 2017 12:51 pm
Yeah, SkeletonGraphic has the "Unscaled Time" checkbox. Just use that.
If you're using SkeletonAnimation, you have to do the following:
- Uncheck "Clear State on Disable" under Advanced. I think this is disabled by default anyway.
- Disable the component (uncheck its checkbox in the inspector, or
skeletonAnimation.enabled = false
in code).
- In Update in a separate script, call skeletonAnimation.Update(float deltaTime) and skeletonAnimation.LateUpdate() yourself.
the float deltaTime you pass yourself will need to be the unscaled time.
This is also more or less how you would do it if you wanted the SkeletonAnimation to do fixed-time frame-skipping or some other stylistic or optimization tricks.