Search Issue Tracker

Active

Votes

1

Found in

2022.3.55f1

6000.0.34f1

6000.1.0b2

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]

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.