Search Issue Tracker

In Progress

Fixed in 2023.2.18f1, 6000.0.0b11

In Progress in 2022.3.X



Found in





Issue ID




"TextureImporterInspector.OnInspectorGUI must call ApplyRevertGUI to avoid unexpected behaviour." thrown when selecting Asset then selecting and deselecting Texture 2D



How to reproduce:
1. Open the attached project ""
2. Select Assets/LevelMaterialConfig.asset in the Project window
3. Select Assets/tile2_1x1.png
4. Repeat step 2

Expected results: No errors thrown in the Console window
Actual results: "TextureImporterInspector.OnInspectorGUI must call ApplyRevertGUI to avoid unexpected behaviour." thrown in the Console window

Reproducible with: 2022.1.0a15, 2022.2.20f1, 2023.2.0a15
Not reproducible with: 2020.3.48f1, 2021.3.25f1, 2022.1.0a14

Reproducible on: Windows 10

Comments (5)

  1. razvigor

    Mar 02, 2024 06:24

    This seems to be related to something deeper than just a single install. Once I started getting this error it now plagues all my installs, of which I have at least 10. All different versions, all have the same issue. It's like a virus...

  2. Sphax84

    Nov 07, 2023 12:47

    Reproduced in 2022.3.12f1

    As said here:

    While the preview panel is opened (as a docked window).
    Steps are:
    - select a sprite (displayed properly in preview)
    - select another item in project (not a sprite, i.e. a folder)

  3. BlackManatee

    Nov 06, 2023 21:34

    Update/Clarification re my previous comment: Once the error starts appearing, I'm unable to make ANY changes to my textures in the Inspector. Usually, the Inspector tab simply ignores any input whatsoever; occasionally it'll show the Apply button, but either way I'm unable to alter texture settings at all in the affected Unity project once this has occurred. Relaunching the project only occasionally clears the error.

  4. BlackManatee

    Nov 06, 2023 21:29

    Tried resetting editor and even rebuilding the library, but the problem eventually recurred -- related to the "Platform Initialization Settings" bug, as detailed below. Hoping to find a recent Unity version that *doesn't* have the bug.

    One thing I've noticed is that the errors seem to start up again any time I select a sprite texture in the Project tab. After that, I can't get ANY texture to show up properly in the Inspector.

  5. l-u-009

    Aug 31, 2023 08:16

    Resetting the editor window layout to one of the built-in profiles helped me

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.