Version: 2017.3
public void OnBeforeSerialize ();

Description

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

See ISerializationCallbackReceiver for more information.