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
- “Remove Unused Overrides” available on not loaded Scene and throws “ArgumentException: The scene is not loaded” warning
- Adaptive Probe Volume occlusion edge is calculated incorrectly when viewing probes near geometry edges
- Sampling a texture using an HLSL file throws shader errors and the code does not compile
- "Graphics.CopyTexture called with null source texture" error when Base Camera of an Overlay Camera is removed with DX11 Graphics API and Compatibility Mode enabled
- WebGL sends wrong value with large numbers when SendMessage function is used
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.