Class GraphEditorObject
GraphEditorObject stores the graph asset data. Implements the ScriptableObject Implements the ISerializationCallbackReceiver
Inherited Members
UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
Namespace: Mechatronics.SystemGraph
Syntax
public class GraphEditorObject : ScriptableObject, ISerializationCallbackReceiver
Properties
Graph
Gets the graph descriptor.
Declaration
public GraphDescriptor Graph { get; }
Property Value
| Type | Description |
|---|---|
| GraphDescriptor | Graph descriptor associated with this editor object. |
GraphInstance
Gets or sets the graph instance.
Declaration
public SystemGraphComponent GraphInstance { get; set; }
Property Value
| Type | Description |
|---|---|
| SystemGraphComponent | The graph instance. |
LogicGraphData
Gets the logic graph data.
Declaration
public SystemGraphData LogicGraphData { get; }
Property Value
| Type | Description |
|---|---|
| SystemGraphData | The logic graph data. |
Methods
Initialize(GraphDescriptor, SystemGraphComponent)
Initializes the specified desc.
Declaration
public void Initialize(GraphDescriptor desc, SystemGraphComponent attachRuntimeGraph = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GraphDescriptor | desc | The desc. |
| SystemGraphComponent | attachRuntimeGraph | The attach runtime graph. |
OnAfterDeserialize()
Implement this method to receive a callback after Unity deserializes your object.
Declaration
public void OnAfterDeserialize()
Implements
OnBeforeSerialize()
Implement this method to receive a callback before Unity serializes your object.
Declaration
public void OnBeforeSerialize()
Implements
RegisterCompleteObjectUndo(String)
Registers the complete object undo.
Declaration
public void RegisterCompleteObjectUndo(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| String | name | The name tag for the undo operation. |
Events
Deserialized
Occurs when [deserialized].
Declaration
public event Action Deserialized
Event Type
| Type | Description |
|---|---|
| Action |