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
- On Script import/reimport MonoImporter does not generate consistent results due to updating Custom packages
- [Entities Graphics] Size of the Content Update generated folder increases when changes are made to the Scene
- In Play Mode, an extra Sync Call is made every frame when a GameObject has a Rigidbody 2D component
- Crash on block_remove when a scene is opened in a specific project
- The GameObject with a Hinge Joint Component does not return to the initial position when the Use Motor property is toggled off
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)).