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
-
Hazneliel
Nov 24, 2024 19:45
Still happening on 2022.3.9f1
-
amarillosebas
May 17, 2024 03:41
Small company doesn't have the resources to fix their engine
-
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
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
- GPU utilization increases by 20% on Meta Quest headsets when Render Graph is enabled on 6000.0.16f1 and higher
- Value on Slider (Int) control in UI Builder displays as default when saving UI Document
- Color mismatch in UI Builders Library panel when the Editors theme is set to Light Mode
- [Android ] "AndroidJNI.ToBooleanArray" returns a random non-zero value instead of "IntPtr.Zero" when the method argument is null
- Non-HDR color picker opens when selecting material color with HDR enabled
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.