OnEnable is called when an ScriptableObject has been deserialized.
Is there any hook just before it gets serialized?
My concrete problem is, that I have an scriptable object that has a very tuned and specialized structure for holding its data, which would give me a headache to try to turn it into an serializable structure directly. So my idea was, that I convert the data into some serializable format (string, byte or whatever) just before serialization kicks in and convert it back on
Sure, I could do the serialization changes every time I change anything on the data, but that seems rather cumbersome to me.
Isn’t there a simple “
EditorApplication.onSerializableCallback in the specs that I may have overlooked?