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
-
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
-
SixOneTwo612
Sep 21, 2023 02:47
I am having this error in 2022.3.8f1
-
JoshuaMeurey
Aug 10, 2023 08:13
Reproduced in 2022.3.3f1: I guess you should have the preview panel opened.
Steps are:
- select a sprite (displayed properly in preview)
- select another item in project (not a sprite, i.e. a folder)Then, this error is logged:
TextureImporterInspector.OnInspectorGUI must call ApplyRevertGUI to avoid unexpected behaviour.
UnityEditor.InspectorWindow:RedrawFromNative () -
Mellurboo
Jul 17, 2023 19:41
In typical unity style you guys refuse to fix an engine breaking bug
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.