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
- [Android] Stage information is not logged when Log Shader Compilation is enabled
- [Vulkan] The memory allocation increases rapidly when there are multiple (three or more) Real-Time Reflection Probes in the Scene
- [macOS] Library folder of the opened project can be deleted which leads to the crash
- “Default Scene” dropdown field contains a spelling mistake “Default Builtin”
- Editor crashes on PPtr<Mesh> after adding Text Mesh and Cloth Components to the same GameObject
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.