unity-game-engine

How to fix ScriptImporterEditor.OnInspectorGUI


"ScriptImporterEditor.OnInspectorGUI must call ApplyRevertGUI to avoid unexpected behaviour." This error appears in every new project. It's her fault that scripts aren't drawn in the inspector. The error itself appears after switching the cursor from a folder to any script. There is also a similar error "ScriptImporterEditor.OnInspectorGUI must call ApplyRevertGUI to avoid unexpected behavior.", which breaks the display of sprites.

What it should look like

What does it look like

What I have already tried to do:

  1. Update the editor version to LTS (from 22.3.5f1 to 22.3.20f1)
  2. Create a new project
  3. Reinstall the editor version

Has anyone encountered this problem and was it somehow solved?


Solution

  • Try re-importing all the files in the project. I get this error ALL the time and the only way I was able to fix it was by re-importing the files. Do this:

    Assets > Reimport all