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
- Property fields overlap in the Override window when comparing changes
- "Timeflow Animation System" custom package appears twice in the Package Manager
- Sprite Atlas Override for iOS setting remains disabled when saving its change to enabled
- Increased Memory usage when Update Mode 'On Demand' Realtime lights are used and DX12 API is selected
- Shader warnings in URP ShaderGraph when using the Normal From Texture node
Resolution Note (fix version 2020.1):
Fixed in 2020.1.0a23