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
- There is no way to adjust the HDR Paper White value of the Unity Editor's interface, making it difficult/uncomfortable for some developers to work on very dark/bright scenes in HDR
- Animator window has a dropdown button that throws “MissingReferenceException” error on a new project when the previous project had a GameObject with an animation
- Animator State name overflows outside the visual box when the State has a long name
- UI Document file remains marked as Dirty after Undoing made changes
- Switching between UI Documents with different Canvas sizes marks the UXML file as dirty
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)).