Search Issue Tracker
Fixed
Fixed in 2022.3.43f1, 2023.2.18f1, 6000.0.6f1
Votes
15
Found in
2022.2.20f1
2023.1.0b17
2023.2.0a15
2023.3.0a3
7000.0.0a1
Issue ID
UUM-35998
Regression
Yes
"TextureImporterInspector.OnInspectorGUI must call ApplyRevertGUI to avoid unexpected behaviour." thrown when selecting Asset then selecting and deselecting Texture 2D
How to reproduce:
1. Open the attached project "InpsectorIssue.zip"
2. Select Assets/LevelMaterialConfig.asset in the Project window
3. Select Assets/tile2_1x1.png
4. Repeat step 2
Expected results: No errors thrown in the Console window
Actual results: "TextureImporterInspector.OnInspectorGUI must call ApplyRevertGUI to avoid unexpected behaviour." thrown in the Console window
Reproducible with: 2022.1.0a15, 2022.2.20f1, 2023.2.0a15
Not reproducible with: 2020.3.48f1, 2021.3.25f1, 2022.1.0a14
Reproducible on: Windows 10
-
restush96
May 30, 2024 10:07
This also happen on custom ScriptedImporterEditor draw with visual element.
For work around, force ApplyRevertGui() with try and catch on CreateInspectorGUI().Preview:
public override VisualElement CreateInspectorGUI()
{
var btn = new Button();
try
{
ApplyRevertGUI();
}
catch (Exception _)
{
}
return btn;
} -
razvigor
Mar 02, 2024 06:24
This seems to be related to something deeper than just a single install. Once I started getting this error it now plagues all my installs, of which I have at least 10. All different versions, all have the same issue. It's like a virus...
-
Sphax84
Nov 07, 2023 12:47
Reproduced in 2022.3.12f1
While the preview panel is opened (as a docked window).
Steps are:
- select a sprite (displayed properly in preview)
- select another item in project (not a sprite, i.e. a folder) -
BlackManatee
Nov 06, 2023 21:34
Update/Clarification re my previous comment: Once the error starts appearing, I'm unable to make ANY changes to my textures in the Inspector. Usually, the Inspector tab simply ignores any input whatsoever; occasionally it'll show the Apply button, but either way I'm unable to alter texture settings at all in the affected Unity project once this has occurred. Relaunching the project only occasionally clears the error.
-
BlackManatee
Nov 06, 2023 21:29
Tried resetting editor and even rebuilding the library, but the problem eventually recurred -- related to the "Platform Initialization Settings" bug, as detailed below. Hoping to find a recent Unity version that *doesn't* have the bug.
One thing I've noticed is that the errors seem to start up again any time I select a sprite texture in the Project tab. After that, I can't get ANY texture to show up properly in the Inspector.
-
l-u-009
Aug 31, 2023 08:16
Resetting the editor window layout to one of the built-in profiles helped me
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
- Animation Clip with Legacy enabled does not play when Time.timeScale is set to 0 despite Update mode set to "Unscaled time"
- Rename is enabled on subfolder empty space - "Can't rename to empty name" warning
- SamplerState Property Missing Anisotropic Filtering
- Visual glitches when using Handles API
- The RGBA color values are inconsistent when comparing two identical colors set in the Inspector
Resolution Note (fix version 6000.0.6f1):
Issue is fixed in latest Trunk(6000.0.6f1)