Search Issue Tracker
Won't Fix
Votes
2
Found in
5.3.8f1
Issue ID
936691
Regression
No
[Shaders] Shader _Time value isn't updated when there isn't a Camera in the Scene
Shader _Time value isn't updated when there isn't a Camera in the Scene.
When you don't have a camera in the scene, just a Canvas set to Overlay, the shader animation (via shader code with _Time property) doesn't work. If you switch off Main Camera game object in testScene and close Scene View, leaving just Game View, and then hit Play, effect in Canvas will not be updated.
To repro:
1) Open attached project
2) Open testScene
3) Deactivate main camera game object and close Scene View tab
4) Enter playmode and see the shader animation (uses _Time) not playing on UI graphic
5) Activate camera game object and see animation working.
Reproduced in 5.3.8f1, 5.6.2p4, 2017.2.0b1.
Comments (2)
-
PandaArcade
Oct 03, 2024 06:51
Hahahahahaha (╥_╥)
-
AAulicinop
Feb 08, 2019 13:49
Also happens in 2018.3.4f1.
Annoying when you only want to display UI using Screen Space - Overlay.
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- “Remove Unused Overrides” available on not loaded Scene and throws “ArgumentException: The scene is not loaded” warning
- Adaptive Probe Volume occlusion edge is calculated incorrectly when viewing probes near geometry edges
- Sampling a texture using an HLSL file throws shader errors and the code does not compile
- "Graphics.CopyTexture called with null source texture" error when Base Camera of an Overlay Camera is removed with DX11 Graphics API and Compatibility Mode enabled
- WebGL sends wrong value with large numbers when SendMessage function is used
Resolution Note (2019.3.X):
There is no nice way to force update the _Time or shader properties when there is no camera without rewriting a lot of systems which is not doable currently.