ISerializationCallbackReceiver.OnAfterDeserialize

Declaration

public void OnAfterDeserialize();

Description

Implement this callback to transform data back into runtime data types after an object is deserialized.

Unity invokes the OnAfterDeserialize callback on an object after deserializing it. In this callback, you can transform the deserialized data back into your preferred runtime data type. For example, use key and value arrays to repopulate a C# Dictionary object.

Refer to Custom serialization in the Manual for more information.


Did you find this page useful? Please give it a rating: