Search Issue Tracker
By Design
Votes
1
Found in
2019.3.0a3
2019.4
2019.4.1f1
2020.1
2020.2
Issue ID
1261247
Regression
Yes
Backgrounds of Editor windows are changed to a texture when method ImageConversion.LoadImage is called
How to reproduce:
1. Open the attached project (case-1261247.zip)
2. Enter Play Mode
3. In the Game view press 'Button 1' to call ImageConversion.LoadImage or 'Button 2' to call Texture2D.LoadImage
4. Hover the mouse on any window (Hierarchy, Console, Inspector...)
Expected result: the hovered window remains unchanged
Actual result: the background of the window changes to a custom texture
Reproducible with: 2019.3.0a3, 2019.4.3f1, 2020.1.0b15, 2020.2.0a17
Not reproducible with: 2018.4.24f1, 2019.3.0a2
Notes:
After the issue occurs, restarting the Editor restores all the windows back to normal
Comments (1)
-
SeaPeaMe
Jul 07, 2020 14:41
It seems that it also changes every sprite that is set to "None" to the custom texture as well (Can be reproduced after pressing one of the buttons, then calling the PulseZoom Coroutine in PlayerCamera.cs)
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
- Shader Graph Asset icon is not shown on creation unless you confirm the name
- APV Sky occlusion doesn't consider the terrain
- [iOS] "EXC_BAD_ACCESS" Player crash when Script Debugging is enabled
- Cursor skips input fields when tabbing between two sets of input fields
- "Shader error redefinition of 'Varyings'" error appears when selecting the shader
Resolution Note (2020.2.X):
The texture that is being loaded is initialized with Texture2D.whiteTexture. However, LoadImage() will replace the texture content with the new provided texture data. So, this result is expected. The solution is to initialize the texture with a small, empty texture instead (texture = new Texture2D(1,1)).