- changed status to resolved
GUI.skin.FindStyle Typo in ToolbarSearchCancelButton and ToolbarSearchTextField
Issue #940
resolved
What happened?
- Endless Error Loop OnGUI on any Inspector with a search bar. For example “InspectorConfig” in Odin Settings folder.
How can we reproduce it?
- Install Unity 2022.3.1f1 and Odin 3.1.12-2. Open Odin Settings Window on Editor Windows.
What version of Unity are you using?
- 2022.3.1f1
What version of Odin are you using? (See "Tools > Odin Inspector > About")
- 3.1.12-2
Do you have Editor Only mode enabled?
- Yes (Reproducible in any version though)
What operating system are you on?
- Windows 11 - Latest
I installed the Source Code Version to pin point the error to SirenixGUIStyles.cs.
Line 1441
toolbarSeachCancelButton = GUI.skin.FindStyle("ToolbarSeachCancelButton");
should read
toolbarSeachCancelButton = GUI.skin.FindStyle("ToolbarSearchCancelButton");
as well as
Line 1460
toolbarSeachTextField = GUI.skin.FindStyle("ToolbarSeachTextField")
should read
toolbarSeachTextField = GUI.skin.FindStyle("ToolbarSearchTextField")
Comments (2)
-
-
reporter Much obliged.
- Log in to comment
This issue was introduced by Unity making a breaking change by renaming a style. We have a fix coming up in a patch, likely to be released monday :)