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
- [Android][Vulkan] Crash on /system/lib/libandroid.so (ANativeWindow_setBuffersGeometry+4) when the Vulkan Graphics API is used
- Event handlers are preventing operations when trying to copy or paste HTML text in the WebGL Player
- [macOS] Crash on __pthread_kill when Exporting a Package while another export is in progress
- Crash on TransformAccessDestroyCallback when removing a URP Decal Projector component from a parent GameObject that had a URP Decal Projector child GameObject
- An added component is being removed form the prefab when reimporting the prefab
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)).