docs.unity.cn
    Show / Hide Table of Contents

    Class NodeExpandable

    Class NodeExpandable. Implements the NodeExpandable

    Inheritance
    Object
    Object
    ScriptableObject
    NodeRuntime
    NodeExpandable
    NodeExpandable<T>
    TestDynamic
    Inherited Members
    NodeRuntime._parent
    NodeRuntime._portList
    NodeRuntime._queryPath
    NodeRuntime.QueryPath
    NodeRuntime._tickCPUTimeNs
    NodeRuntime.TickCPUTimeNs
    NodeRuntime.PortDataList
    NodeRuntime.Initialize(SystemGraphComponent)
    NodeRuntime.InternalInitialize()
    NodeRuntime.Start()
    NodeRuntime.Enable(Scheduler.ClockState)
    NodeRuntime.Disable()
    NodeRuntime.OnTick(Double, Double, Scheduler.ClockState, Scheduler.Signal)
    NodeRuntime.Update()
    NodeRuntime.FixedUpdate()
    NodeRuntime.InitializeDynamicPorts(SystemGraphComponent)
    ScriptableObject.SetDirty()
    ScriptableObject.CreateInstance(String)
    ScriptableObject.CreateInstance(Type)
    ScriptableObject.CreateInstance<T>()
    Object.GetInstanceID()
    Object.GetHashCode()
    Object.Equals(Object)
    Object.Instantiate(Object, Vector3, Quaternion)
    Object.Instantiate(Object, Vector3, Quaternion, Transform)
    Object.Instantiate(Object)
    Object.Instantiate(Object, Transform)
    Object.Instantiate(Object, Transform, Boolean)
    Object.Instantiate<T>(T)
    Object.Instantiate<T>(T, Vector3, Quaternion)
    Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
    Object.Instantiate<T>(T, Transform)
    Object.Instantiate<T>(T, Transform, Boolean)
    Object.Destroy(Object, Single)
    Object.Destroy(Object)
    Object.DestroyImmediate(Object, Boolean)
    Object.DestroyImmediate(Object)
    Object.FindObjectsOfType(Type)
    Object.FindObjectsOfType(Type, Boolean)
    Object.DontDestroyOnLoad(Object)
    Object.DestroyObject(Object, Single)
    Object.DestroyObject(Object)
    Object.FindSceneObjectsOfType(Type)
    Object.FindObjectsOfTypeIncludingAssets(Type)
    Object.FindObjectsOfType<T>()
    UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
    Object.FindObjectOfType<T>()
    UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
    Object.FindObjectsOfTypeAll(Type)
    Object.FindObjectOfType(Type)
    Object.FindObjectOfType(Type, Boolean)
    Object.ToString()
    Object.name
    Object.hideFlags
    Namespace: Mechatronics.SystemGraph
    Syntax
    [Serializable]
    public class NodeExpandable : NodeRuntime

    Fields

    _portMap

    The port map

    Declaration
    protected Dictionary<string, IPortType> _portMap
    Field Value
    Type Description
    Dictionary<String, IPortType>

    Properties

    PortList

    Gets the port list.

    Declaration
    public IList<PortData> PortList { get; }
    Property Value
    Type Description
    IList<PortData>

    The port list.

    PortMap

    Gets the port map.

    Declaration
    public Dictionary<string, IPortType> PortMap { get; }
    Property Value
    Type Description
    Dictionary<String, IPortType>

    The port map.

    Methods

    GetAllowedPortTypes()

    Called from the editor to get the allowed port types override the function to return a custom list of ports to add.

    Declaration
    public virtual IEnumerable<Type> GetAllowedPortTypes()
    Returns
    Type Description
    IEnumerable<Type>

    Enumerator of allowed types

    GetDynamicPort(String)

    Gets the dynamic port.

    Declaration
    public IPortType GetDynamicPort(string name)
    Parameters
    Type Name Description
    String name

    The name.

    Returns
    Type Description
    IPortType

    IPortType.

    GetDynamicPort<T>(String)

    Gets the dynamic port.

    Declaration
    public T GetDynamicPort<T>(string name)
        where T : class
    Parameters
    Type Name Description
    String name

    The name.

    Returns
    Type Description
    T

    T.

    Type Parameters
    Name Description
    T

    OnPortAdded(String, Type, String, PortDirection, FieldExtra, ref IPortType)

    PortAddition event received from the editor during edit mode if ExpandablePorts attribute is set. By default this function will accept all ports.

    Declaration
    public override bool OnPortAdded(string entryName, Type portType, string tooltip, PortDirection direction, FieldExtra extra, ref IPortType portReference)
    Parameters
    Type Name Description
    String entryName

    The name of the new port

    Type portType

    Type of the port object

    String tooltip

    The tooltip.

    PortDirection direction

    The direction.

    FieldExtra extra

    The extra.

    IPortType portReference

    The port reference.

    Returns
    Type Description
    Boolean

    Returns true if the port is accepted

    Overrides
    NodeRuntime.OnPortAdded(String, Type, String, PortDirection, FieldExtra, ref IPortType)

    OnPortRemoved(String)

    Port removal event recieved from the editor during edit mode if ExpandablePorts attribute is set. By default this function will reject all removeals

    Declaration
    public override bool OnPortRemoved(string entryName)
    Parameters
    Type Name Description
    String entryName

    The name of the port to remove

    Returns
    Type Description
    Boolean

    Returns true if the port is removed

    Overrides
    NodeRuntime.OnPortRemoved(String)

    UpdatePortMap()

    Updates the port map.

    Declaration
    public void UpdatePortMap()

    See Also

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