Search Issue Tracker
In Progress
Fixed in 2023.2.18f1, 6000.0.0b11
In Progress in 2022.3.X
Votes
14
Found in
2022.2.20f1
2023.1.0b17
2023.2.0a15
2023.3.0a3
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
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
- “[Worker0] Could not generate preview image“ error when opening macOS native plugin in the Inspector with Architecture to build for set to ARM 64-bit
- [iOS] Application.absoluteURL is empty on Awake/Start when opening via deep link with Splash Screen disabled
- Crash on MemoryManager::Deallocate when rapidly calling Addressables.LoadAssetAsync
- Crash on physx::shdfnd::atomicIncrement when adjusting values on a character controller component after entering Play mode in Prefab edit mode
- [Rendering Debugger] [NewInputSystem] Debug Overlays in Play mode throws InvalidOperationException when using New Input System
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
As said here: https://issuetracker.unity3d.com/issues/textureimporterinspector-dot-oninspectorgui-error-after-deselecting-a-texture-in-certain-scenarios
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