Skip to content

Scaled Time

Video about it:

The default shader variant of the asset uses the built in Unity “_Time” shader property to animate some effects. “_Time” is scaled, which means that if you pause the game all animated effects will pause too. If you want all shader effect animations to keep playing, use the Scaled Time shader variant and add the SetGlobalTime component to an active object of your scene. It feeds the shader the unscaled time, so the effects keep moving while Time.timeScale is 0.

The same Wave effect on the default variant and on the Scaled Time variant with a SetGlobalTime in the scene. When Time.timeScale drops to 0 the default one freezes and the Scaled Time one keeps waving

For a masked UI Image, the Masked UI Scaled Time variant combines this with UI Masking.

To change the shader variant use the asset component:

The All In 1 Shader component with Change Shader Variant set to Scaled Time