Legacy Documentation: Version 5.4
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

ISerializationCallbackReceiver

interface in UnityEngine

Description

Interface to receive callbacks upon serialization and deserialization.

Public Functions

OnAfterDeserializeImplement this method to receive a callback after Unity de-serializes your object.
OnBeforeSerializeImplement this method to receive a callback before Unity serializes your object.