Custom Scaled Time
Last updated
Last updated
By default, the asset shaders use Unity’s _Time variable for all the animated effects. This _Time variable will scale with Time.timeScale. Meaning that if the game pauses the effects won’t animate either. This is what we usually want.
But if for some reason you want the effects to keep animating While the game is paused you need to follow these 2 steps:
Check the “Use Custom Time Toggle” in the Material Inspector Advanced Configuration.
Have an active gameobject in the scene with the “SetAllIn1VfxCustomGlobalTime.cs” script attached.