Method OnBeforeSerialize
OnBeforeSerialize()
Serializes the runtime graph model into Unity-serializable backing data.
public virtual void OnBeforeSerialize()
Remarks
Nodes, edges, groups, sticky notes, and sticky images are serialized into JSON-object lists. Unity object fields marked with SerializeAssetAttribute are captured separately in Pinwheel.Vista.Graph.GraphAsset.m_objectReferences because the generic serializer works on graph objects rather than Unity asset references directly. Nodes that implement UnityEngine.ISerializationCallbackReceiver receive their own pre-serialize callback before node data is captured.