Search Issue Tracker
Fixed in 2020.1.X
Fixed in 2019.3.X
Votes
1
Found in
2019.3.0a3
2019.3.0f3
2020.1
Issue ID
1212892
Regression
Yes
OnPreviewGUI method's background image is rendered grey instead of white when background image is set to whiteTexture
How to reproduce:
1. Open the attached 'TestPreviewRenderer2.zip' project
2. Navigate Example -> GameObject Editor
3. Observe that background is grey
4. Open the 'ExampleClass.cs' script
5. Observe that in 31 line 'OnPreviewGUI' method background image is set to a 'whiteTexture'
Expected result: ExampleClass window background color is white
Actual result: ExampleClass window background color is grey
Reproducible with: 2019.3.0a3, 2019.3.0f6, 2020.1.0a21
Not reproducible with: 2017.4.36f1, 2018.4.16f1, 2019.2.20f1, 2019.3.0a2
Notes:
1. Video of reproduction attached in Edit
2. Also reproducible with OnInteractivePreviewGUI method
3. Errors are thrown to the Console, when ExampleClass window is opened: 'RenderTexture.Create failed: width & height must be larger than 0'; 'ArgumentException: RenderTextureDesc width must be greater than zero.'
4. When opening 'Example Class' window for the first time it shows a blank window, reopening fixes the issue
5. Reproducible on macOS
6. Reproducible with linear and gamma color space
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
- [iOS] Postprocessing errors appear when using RenderGraph and NativeRenderPass
- Can't add a Scene to a Baking Set when it has just been deleted from the Set
- [iOS 17] "Malformed URL" error is thrown when using UnityWebRequest with a URI containing "[]"
- [Android] Player crashes at launch with error when built with custom Editor build
- Memory Leak when using InstantiateAsnyc to instantiate a large Prefab
Resolution Note (fix version 2020.1):
Fixed in 2020.1.0a23