Hello there,
So here’s the problem. I made some quick test and it appears that custom Serializable object can’t be accessed from SerializedProperty.objectReferenceValue, which seems to only work for Unity objects.
Is there a way I can get a reference to my object from SerializedProperty ?
Thanks in advance for your answers
I finally found what I was looking for ! Here it is : Get the instance the SerializedProperty belongs to in a CustomPropertyDrawer - Unity Answers
I was hoping for something less resource hungry, but hey ! It’s not that bad if I don’t do that on each OnInspectorGUI call !
Thanks to whydoidoit, even though he didn’t directly answer that question