Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


OnAfterDeserialize()

Implement this callback to transform data back into runtime data types after an object is deserialized.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
void OnAfterDeserialize()

Remarks

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.
Refer to Custom serialization in the Manual for more information.