I’m writing todo list in EditorWindow. All it’s data is being serialized as separate text JSON files. One of the fields in every entry is of type UnityEngine.Object and they are pointing to Project files for some context (serialized by JSON as instanceID). But problem is: after editor restart and deserialization this field now points to very different Object.
I observed that one particular asset has id of “19658” but reference to it gets serialized as different number, “16670” for example. I suspect instanceID is not good value to use but I’m not sure what is the best way to go about it. Any ideas?
Serialize Object field as asset path instead? (not ideal as easily breakable)
Some another type of GUID?