Question by
TomNCatz · Apr 02, 2020 at 08:51 PM ·
serializationpropertydrawer
How can I receive onAfterDeserialize and onBeforeSerialize in a propertydrawer?
I am writing a property drawer that needs to be notified when just before the serialization pass and just after the deserialization pass. Unsurprisingly, inheriting from ISerializationCallbackReceiver in the property drawer does not seem to get this functionality.
Is there a way to get similar events for the property drawer?
I know that the SerializeField attribute probably uses some sort of internal workaround that is not available to us, but I am looking for very similar functionality.
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612230355im_/https://answers.unity.com/themes/thub/images/avi.jpg)