Version: 2017.2
public void OnBeforeSerialize ();

Description

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

See ISerializationCallbackReceiver for more information.