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
- ":focus" style will not be shown when the UI element is unparented and reparented and the "Focus()" method is called without the "Blur()" method being called
- Crash on BucketAllocator::Allocate when importing TextMeshPro assets
- Playmode dropdown creates continuous "Layout update is struggling" errors at certain aspect ratios
- Editor takes a long time to open VFX Graph 'Subgraph' asset when it is heavily referenced by multiple other VFX Graphs
- "Editor Event Handler Error" error is thrown when using Terrain Tool shortcuts
Resolution Note (fix version 2020.1):
Fixed in 2020.1.0a23