Search Issue Tracker
By Design
Votes
0
Found in [Package]
11.0.0
Issue ID
1354922
Regression
No
[Universal RP] The Prefab in the Inspector preview is dark when uses high ambient color
How to reproduce:
1. Open the user's attached "PrefabPreviewRepro.zip"
2. Select the "Cube" Prefab in the Project window
3. Observe the GameObject in the Inspector preview
Expected result: The Prefab in the Inspector preview is bright
Actual result: The Prefab in the Inspector preview is dark
Reproducible with: 7.7.1 (2019.4.29f1), 10.6.0 (2020.3.16f1), 11.0.0 (2021.1.17f1)
Could not test with: 12.0.0 (Due to the user's Shader error "Shader error in 'Test/Ambient Only': invalid subscript 'posWS' at line 117 (on d3d11)")
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
- Mono Windows Builds don't produce full log callstacks when generating logs
- AssetBundles fail to load when running in Built Players for Mobile Devices
- UI elements with text gets bigger and grey when Player window is moved to another screen with different resolution
- System name accepts multiline text but crops it on confirmation, duplicates input, and shrinks the field when empty
- UI element scale and position are wrong in project build when DRS is changed with HDR and Software Dynamic Resolution enabled
Resolution Note:
This is by design the ambient color is set to dark gray in the preview window. You can change the prefab environment instead. This can be done by script(see forum discussion for suggestion: https://forum.unity.com/threads/editor-callback-for-prefab-mode-being-open.566803/) or by dragging the scene you wish to use into the given setting described in: https://docs.unity3d.com/Manual/EditingInPrefabMode.html.