There is no way to detect whether a field is missing or none.

I am using the SerializedProperty to check whether a field is missing or none, using the following code:

sp.objectReferenceValue == null && sp.objectReferenceInstanceIDValue != 0

But in the new version of unity, this check is failed and the missing field the objectReferenceInstanceIDValue is 0 too. I write a tool to detect all missing reference field. How can I check it in the newest unity?

The original way is really common used, can be found everywhere on github. I hope there is an official way to detect this:


Is there any one know how to detect the missing field in 2018.3?

Could you please submit a bug report for this issue?