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
-
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
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
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)).