docs.unity.cn
    Show / Hide Table of Contents

    Class PortTypeSystemGraphAsset

    Class PortTypeSystemGraphAsset. Implements the IPortType Implements the ISerializationCallbackReceiver

    Inheritance
    Object
    IPortType
    PortTypeSystemGraphAsset
    Inherited Members
    IPortType.globalId
    IPortType.uniqueId
    IPortType.synchronizeAfterLinking
    IPortType.Clock
    IPortType.ChangeEvent
    IPortType.Batching
    IPortType.SignalBatch
    IPortType.Connected
    IPortType.Driver
    IPortType.SetConnected(Boolean)
    IPortType.SetSynchronizeAfterLinking(Boolean)
    IPortType.CreateFieldBox()
    IPortType.TrySetValue(Object)
    IPortType.TryGetValue()
    IPortType.Synchronize()
    IPortType.Propagate(Double)
    IPortType.SetOnChangeClockRisingEdge(Boolean)
    IPortType.SetAsDriver(Object)
    IPortType.BeginBatch()
    IPortType.EndBatch()
    IPortType.TypeNiceName(Type)
    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

    true if [is addressable valid] [the specified addressable]; otherwise, false.

    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
    ISerializationCallbackReceiver.OnAfterDeserialize()

    OnBeforeSerialize()

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

    Declaration
    public void OnBeforeSerialize()
    Implements
    ISerializationCallbackReceiver.OnBeforeSerialize()

    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.

    See Also

    IPortType
    ISerializationCallbackReceiver
    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Tuesday, October 18, 2022
    Terms of use