The "Missing" state in object reference fields is never shown when using Odin Inspector

Issue #611 new
Theodor Straarup created an issue

1. What happened?

Normally you would see a “Missing (<type>)” label when inspecting an asset with a missing object reference (asset was deleted or assigned a new GUID). After installing Odin Inspector this state is never shown, and the object field simply says “None (<type>)”. This is not desired, as we have systems where certain fields are intentionally left blank. By hiding this state, it becomes harder to see if the field is intentionally left blank, or if something has gone wrong.

Small bonus issue: When in this state, you can normally open the object picker and select “None” in order to remove the “Missing” state. If you have Odin Inspector installed, it will not do this. You have to select a different object first, and then afterwards select “None” in order to clear the reference.

2. How can we reproduce it?

  1. Open the attached project.
  2. Inspect the prefab “GameObjectWithReferences”.
  3. Observe that the second field (_missingObjectReference) is shown as “Missing (Game Object)”.
  4. Install Odin Inspector.
  5. Inspect the prefab again.
  6. Observe that the second field (_missingObjectReference) is shown as “None (Game Object)”.

The situation is created by having an object reference to an asset and then removing said asset from the project; in the attached project, the asset was excluded by adding a period in front of the asset & meta file.

3. If screenshots would help explain or demonstrate your issue, please include these.

Normal Unity Behaviour:

With Odin Inspector:

4. What version of Unity are you using?

2019.2.6f1 (has also been tested in 2019.3.0f3 with the same behaviour).

5. What version of Odin are you using? (See "Tools > Odin Inspector > About")


6. Do you have Editor Only mode enabled?

Yes (although it happens with the mode disabled as well).

7. What operating system are you on?

Windows 10, Version 10.0.18362 Build 18362.

Comments (3)

  1. pistoleta

    Same problem here, devs doesn't seem to give importance to this bug. But the truth is this bug is making other assets to not work well ‘Code Stage Mantainer' for example.

    It would be nice if they at least say something about it.

  2. Log in to comment