Seaside Studios
HomeOverviewFAQsContactReview
Sprite Shader
Sprite Shader
  • What is All In 1 Sprite Shader
  • Overview
  • First Steps (Must Read)
  • Render Pipeline And Post Processing Setup
  • Asset Component Features
  • Right Click Create Material
  • Asset Window
  • Textures Setup
  • Custom Sort Axis
  • Saving Prefabs
  • Sprite Atlases
  • How to animate effects
  • Scripting
  • How to Enable/Disable Effects at Runtime
  • Random Seed
  • Scaled Time
  • UI Masking
  • 2D Renderer URP Lights
  • 3D Lights
  • Unified Outline
  • Render Material To Image
  • Compatibility with other assets
  • Effects and Properties Breakdown
  • Considerations
  • Running out of Shader Keywords
  • FAQ (Frequently Asked Questions)
Powered by GitBook
On this page

Scaled Time

PreviousRandom SeedNextUI Masking

Last updated 8 months ago

Video about it:

The default shader variant of the asset uses the built in Unity “_Time” shader property to animate some effects. This property is provided by Unity and will work differently depending on the Unity version you are using.

Unity 2018 or older: “_Time” isn’t scaled, which means that if you pause the game all animated effects will keep playing. If you want to pause all shader effect animations use the Scale Time shader variant and add the SetGlobalTimeUnity2018.cs script to an active object of your scene. Unity 2019.4 or newer: “_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 Scale Time shader variant and add the SetGlobalTimeNew.cs script to an active object of your scene.

To change the shader variant use the asset component: