Search Issue Tracker
Won't Fix
Won't Fix in 2023.3.X
Votes
1
Found in
2022.3.7f1
2023.1.7f1
2023.2.0b3
2023.3.0a3
Issue ID
UUM-45235
Regression
Yes
HDROutputSettings.main.active stays "True" when calling RequestHDRModeChange to set it "False"
Reproduction steps:
1. Open the attached “Repro.zip” project
2. Open the “Assets/OutdoorsScene.unity” Scene
3. Enter the Play Mode
4. Press the left button once in the Game View
5. Observe the Console window
Expected result: “hdr False” is being printed in the Console
Actual result: “hdr False” is printed once and then reverts back to “hdr True”
Reproducible with: 2022.3.7f1, 2023.1.7f1, 2023.2.0b3
Not reproducible with: 2021.3.29f1
Reproducible on: Windows 10 Pro (22H2)
Note: Display with HDR available is required for reproduction
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
- Crash on mono_dump_native_crash_info when changing a Particle System Renderer’s Material Shader to Standard Unlit
- VFX Prefab doesn’t have Preview icon in Project window and Preview window is empty in Inspector window
- Visual Effect Graph error message does not disappear and lasts forever until the Visual Effect Graph is reopened even when the error causing connection/node is deleted and Visual Effect Graph is saved
- “RenderSettings customReflection texture has invalid type” error keeps getting thrown even when Environment Reflections was set back to Skybox from Custom with an invalid texture
- Particle System with the custom Material breaks the Scene view when the material is using a Shader Graph with the Texture with the power of negative value
Resolution Note:
I've tested with the project provided for repro purposes but I found a problem in the code provided.
The code uses mouse.ispressed to trigger the setting change. mouse.ispressed is true for as long as the mouse button is held so depending on how slow one clicks it can set it to true and false repetitively. Changing it to mouse.wasClickedLastFrame resolves this issue.
Therefore the issue was caused by usage of the wrong event type and is not a bug.
Resolution Note (2023.3.X):
I've tested with the project provided for repro purposes but I found a problem in the code provided.
The code uses mouse.ispressed to trigger the setting change. mouse.ispressed is true for as long as the mouse button is held so depending on how slow one clicks it can set it to true and false repetitively. Changing it to mouse.wasClickedLastFrame resolves this issue.
Therefore the issue was caused by usage of the wrong event type and is not a bug.