Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Bug Unity search window with active search causes error message after recompile

Discussion in 'Immediate Mode GUI (IMGUI)' started by Destruxion, Apr 30, 2023.

  1. Destruxion

    Destruxion

    Joined:
    Jun 5, 2019
    Posts:
    22
    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?

    upload_2023-4-30_16-45-2.png
     
    leonlanghans likes this.
  2. vycma

    vycma

    Joined:
    Feb 1, 2023
    Posts:
    3
    I can confirm this as well for 2023.1.1f1.