Search Issue Tracker
Fixed in 2.1.7
Votes
0
Found in [Package]
2.1.6
Issue ID
1155434
Regression
No
Seeded UnityEngine.Random is not deterministic when there is an active Post Process layer in the scene
How to reproduce:
1. Open the attached project ("case_1155434-RNGPPVBugReport.zip")
2. Open the repro scene ("TestScene")
3. Enter play mode, press "R" and note down the numbers in the console
4. Repeat step 3 to confirm that the same numbers are generated each time
5. Activate Main Camera's Post Process Layer component
6. Enter play mode, Press "R" and note down the numbers in the console
Expected results: The same numbers are generated
Actual results: New set of numbers are generated each time, regardless of the given seed
Reproducible with: 2018.4.1f1, 2019.1.4f1, 2019.2.0b3, 2019.3.0a3
Couldn't test with 2017.4 because it does not support Post Processing package
Reproducible with package versions: 2.1.0, 2.1.6
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
- Test Runner’s vertical scrollbar overlaps with the up and down arrows and upper toolbar tabs when the window is minimized
- The Input Field view is not updated when deleting lines of text
- The scrollbar does not respect empty lines in the Input Field
- “Texture Atlas Viewer“ button text overlaps another button when the UI Toolkit Debugger is narrowed
- Thresholds are no longer automatically calculated after deleting Motion fields in Blendtrees
Resolution Note (fix version 2.1.7):
The calls to UnityEngine.Random have been replaced with an internal RNG so it won't have any side effects anymore.