Class PortTypeSystemGraphAsset
Class PortTypeSystemGraphAsset. Implements the IPortType Implements the ISerializationCallbackReceiver
Inherited Members
Namespace: Mechatronics.SystemGraph
Syntax
[Serializable]
public class PortTypeSystemGraphAsset : IPortType, ISerializationCallbackReceiver
Constructors
PortTypeSystemGraphAsset()
Initializes a new instance of the PortTypeSystemGraphAsset class.
Declaration
public PortTypeSystemGraphAsset()
Fields
Data
The data
Declaration
[NonSerialized]
public SystemGraphObject Data
Field Value
| Type | Description |
|---|---|
| SystemGraphObject |
DataRef
The data reference
Declaration
[NonSerialized]
public SystemGraphObject DataRef
Field Value
| Type | Description |
|---|---|
| SystemGraphObject |
Properties
GraphPath
Gets the graph path.
Declaration
public string GraphPath { get; }
Property Value
| Type | Description |
|---|---|
| String | The graph path. |
Methods
Initialize(NodeSystemGraph)
Initializes the specified parent.
Declaration
public void Initialize(NodeSystemGraph parent)
Parameters
| Type | Name | Description |
|---|---|---|
| NodeSystemGraph | parent | The parent. |
InvalidateType()
Invalidate type of systemgraph from serialized GraphRef
Declaration
public void InvalidateType()
IsAddressableValid(AssetReference)
Determines whether [is addressable valid] [the specified addressable].
Declaration
public static bool IsAddressableValid(AssetReference addressable)
Parameters
| Type | Name | Description |
|---|---|---|
| AssetReference | addressable | The addressable. |
Returns
| Type | Description |
|---|---|
| Boolean |
|
LoadAddressable(AssetReference)
Loads the addressable.
Declaration
public static IEnumerable<SystemGraphObject> LoadAddressable(AssetReference assetRef)
Parameters
| Type | Name | Description |
|---|---|---|
| AssetReference | assetRef | The asset reference. |
Returns
| Type | Description |
|---|---|
| IEnumerable<SystemGraphObject> | IEnumerable<SystemGraphObject>. |
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
RefreshBinding()
Resynchronize deserialized data
Declaration
public void RefreshBinding()
RegisterEditorPort(String, ref IPortType)
Registers the editor port.
Declaration
public void RegisterEditorPort(string name, ref IPortType port)
Parameters
| Type | Name | Description |
|---|---|---|
| String | name | The name. |
| IPortType | port | The port. |