Version: 2018.2
public void OnBeforeSerialize ();

Description

Implement this method to receive a callback before Unity serializes your object.

See ISerializationCallbackReceiver for more information.