Unity search window with active search causes error message after recompile

Hope this is the correct subforum to ask about the following issue.

As long as the search window is open (floating or docked) and there is a search string set I get the following error message after a recompile has finished:

Unable to use a named GUIStyle without a current skin. Most likely you need to move your GUIStyle initialization code to OnGUI
UnityEditor.EditorApplication:Internal_InvokeTickEvents ()

Clearing the search string will solve the issue.

Tested with Unity 2022.2.14 - 17 in an empty project.

Is anyone else getting this?

9 Likes

I can confirm this as well for 2023.1.1f1.

Also getting this with 2022.3.4f1

same on 2022.3.15f1

Same on 2022.3.0

Getting in 2022.3.12

1 Like

I get two of these after every domain reload in 2023.3.0b10 and 6000.0.0b12.

Same on latest unity 6:
Unable to use a named GUIStyle without a current skin. Most likely you need to move your GUIStyle initialization code to OnGUI

Same here, after saving a Monobehaviour script.

Unable to use a named GUIStyle without a current skin. Most likely you need to move your GUIStyle initialization code to OnGUI
UnityEditor.InspectorWindow:RedrawFromNative ()

Same here 2022.3.22f1 , happens pretty often usually after a platform switch.