Search Issue Tracker
In Progress
Under Consideration for 2022.3.X, 6000.0.X, 6000.1.X
In Progress in 6000.2.X
Votes
2
Found in
2022.3.55f1
6000.0.34f1
6000.1.0b2
6000.2.0a1
Issue ID
UUM-92586
Regression
No
Global shader variables _Time and _TimeParameters do not reset when a Scene is loaded in URP
Reproduction steps:
1. Open the attached “BugShaderTime.zip” project
2. Open the “Assets/Scenes/SampleScene.unity“ Scene
3. Enter the Play Mode
4. Observe than _Time.y, _TimeParameters.x and Time.timeSinceLevelLoad have identical values
5. Press the "Reload Scene" button in the Game view
6. Observe the Game view
Expected result: _Time.y, _TimeParameters.x and Time.timeSinceLevelLoad have identical values
Actual result: _Time.y, _TimeParameters.x and Time.timeSinceLevelLoad do not have identical values
Reproducible with: 2022.3.55f1, 6000.0.34f1, 6000.1.0b2
Reproducible on: Windows 11
Not reproducible on: No other environment tested
Notes:
* Reproducible in the Player
* Not reproducible when using built-in RP
* Link to discussions: [https://discussions.unity.com/t/in-92796-global-shader-variables-time-and-timeparameters-appear-to-be-wrong/1582822/2|https://discussions.unity.com/t/in-92796-global-shader-variables-time-and-timeparameters-appear-to-be-wrong/1582822/2|smart-link]
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Shader transparency, discard, and clip are not working when using the Player
- Error is thrown when clicking on warning in the console
- Long IL2CPP build time when project has a .ufbx library wrapper
- Cursor doesn't change to the resizing when using the Rect Tool and the Sprite is too close to the bottom of the Scene View
- InvalidOperationException exception is thrown when Editor Default Text Rendering Mode is set to "Bitmap" and Editor Font is set to "System Font" and an array is expanded in the Inspector Window
Add comment