Please ensure that you have implemented the ISerializationCallbackReceiver interface on your MonoBehaviour or ScriptableObject.

Did this answer your question?