Skip to content

Inspector blank because of Unity Exception #9

@MasterQuestMaster

Description

@MasterQuestMaster

I'm using Unity version 2020.3.11f1. I added the [SerializeReference] and [SerializeReferenceButton] (but same issue with Menu) to a list of objects in my ScriptableObject class. At first it works fine, but if you click away from the object and then try to display the inspector for that object again, it will display the object for a few miliseconds, and then the Inspector will turn blank.

Looks like this:
image
What it should look like:
image

If I use "Reimport" on the affected Scriptable Object, it will work sometimes, like 1 in 5-10 tries. Reimporting the "SerializedReferenceUI" assets did not change anything. Usually, Unity does not show error messages for this, but I got it to show some error messages once.

Unfortunately, I didn't take a screenshot and I can't seem to reproduce the error messages currently, but it said something about Inspector and EditorWindow and it was an "Object reference not set to instance of an object" at "{some guid}:0". "Add Tooltip" function was bottom of the call stack, and "IsActiveEditControl" (or something similar) was the top.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions