Hi!
So I have a standard Time.timeScale = 0f; Pausing system in my game when the menu is activated.
I have some shaders animation shaders that create a nice C64/Amiga multiplexing effect for fonts that I’d like to get working but despite my best efforts the magic isn’t happening.
Bear in mind any animations with Update Mode set to ‘unscaledTime’ work fine. Just the shader used as a Material on an image (font alpha png) is causing issues, as it stops immediately upon pause. Works fine until the TimeScale is set to 0.
I have tried the following:
Shader.SetGlobalFloat(“_UnscaledTime”, Time.unscaledTime);
In Update() when the menu appears
I have also tried applying the value to the material itself via Image.material
I have tried exposing the float in Properties _UnscaledTime (“Unscaled Time”, float) = 0
And adding float _UnscaledTime in the variable declarations.
Is there something I’m missing here? I have tried getting unscaled time to work in many animated shaders and each produces the same result.
Thanks!