Search Issue Tracker
Won't Fix
Votes
3
Found in
2023.1.0a2
Issue ID
UUM-34572
Regression
Yes
TextureImporterInspector.OnInspectorGUI error after deselecting a texture in certain scenarios
Steps to reproduce:
1. Open the attached project
2. Select "New Material" in the Project Window
3. Select the texture next to the material
4. Select the material from step 3 again
5. Observe the console
Expected result: No errors
Actual result: The following error
TextureImporterInspector.OnInspectorGUI must call ApplyRevertGUI to avoid unexpected behaviour.
UnityEditor.TextureImporterInspector:OnDisable () (at /Users/bokken/build/output/unity/unity/Editor/Mono/ImportSettings/TextureImporterInspector.cs:98)
Reproducible with: 2023.1.0a2, 2023.1.0b15, 2023.2.0a13
Not reproducible: 2022.2.0a19, 2022.2.18f1
-
Bebel-O-Rama
Mar 26, 2024 18:11
As other said, it's still happening in 2022.3.17f1
-
rgustafson
Mar 08, 2024 21:35
Happening with 2022.3.14 -- it there not a state this bug can be in where we can at least still vote on it?
Getting:
TextureImporterInspector.OnInspectorGUI must call ApplyRevertGUI to avoid unexpected behaviour
UnityEditor.TextureImporterInspector:OnDisable ()I think it has to do with unapplied settings when clicking off the inspector, a dialog comes up, I hit apply, it does a progress bar and applies, but then i cannot open the inspector for that texture anymore. I get a new error logged in the console each time i try.
-
Unideer
Feb 19, 2024 12:12
still happening in 2022.3.19f1
-
hankuk1592
Jan 29, 2024 13:44
This also happens in the 2022.3.17f1 version. Please fix it
-
OTTCat
Dec 04, 2023 19:55
This also happens in the 2022.3.14f1 version. Please fix it
-
jg_od_nz
Nov 22, 2023 02:56
I get 100% repro for this in Unity 2022.3.12f1
1. Enter text into the project search that gives you both sprite and not-sprite results.
2. Select any not-sprite in the project search results tab.
3. Select any sprite in the project tab. The inspector tab is empty.
4. Select any not-sprite in the project tab. Unity throws this error and the inspector tab is empty.
or alternative step 4:
4. Select any other sprite in the project tab. Unity throws this error but the inspector tab works as expected.TextureImporterInspector.OnInspectorGUI must call ApplyRevertGUI to avoid unexpected behaviour.
UnityEditor.TextureImporterInspector:OnDisable () -
LevonVH
Nov 14, 2023 07:31
Same happens for me on Unity 2023.2.0b8
-
josiahsrc
Nov 12, 2023 15:07
Same issue. Happens every time I select textures. Can't edit the texture because of it
-
Sphax84
Nov 07, 2023 12:43
Reproduced in 2022.3.12f1
As JoshuaMeurey said, I think the issue is due to Preview window being opened -
wirmachenbunt
Oct 05, 2023 18:27
version 2022.3.4f1 , same issue,really annoying and sometimes renders the inspector window empty, can't change any texture nor material properties
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
- [Scene View][Ubuntu] Prefab mode UI ghosting in HDRP
- Deleting AudioMixer asset throws MissingReferenceException and breaks the Audio Mixer window
- Crash on ScheduleGenerateTilingShape when modifying PolygonCollider2D path count and setting path vertices
- Crash when a scene is created with LocalPhysicsMode::Physics3D
- [HDRP] Light doesn't bounce off terrains
Resolution Note:
Cannot reproduce on 23.3, 23.2 or 23.1. I looked at the code printing the exception and it could print this exception if Apply wasn't called when texture import settings had changed. I did a few tests with this and I always get the dialog asking to save. Maybe there is a texture import settings that doesn't trigger a Dialog? I would need more precise repro steps in this case.