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?
- Open the attached project.
- Inspect the prefab “GameObjectWithReferences”.
- Observe that the second field (_missingObjectReference) is shown as “Missing (Game Object)”.
- Install Odin Inspector.
- Inspect the prefab again.
- 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.