docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class NodeRuntime

    The NodeRuntime class provides an interface to create a systemgraph runtime and editor node. Implementation of this class exposes the user implementation to the lifecycle of SystemGraph.

    Inheritance
    object
    Object
    ScriptableObject
    NodeRuntime
    GenericPorts
    PortBridge<T>
    PortValueGenerator<T>
    SumFloats
    TestArray
    DataCastToComputeBufferNode
    DataCastToTextureNode
    NodeAnimationCurve
    NodeBool
    NodeClock
    NodeDouble
    NodeExpandable
    NodeFloat
    NodeGameObject
    NodeInt
    NodeQuaternion
    NodeRenderTexture
    NodeString
    NodeSystemGraph
    NodeTexture2D
    NodeUint
    NodeVector2
    NodeVector3
    NodeVector4
    PrintMessage
    Inherited Members
    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, bool)
    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, bool)
    Object.Destroy(Object, float)
    Object.Destroy(Object)
    Object.DestroyImmediate(Object, bool)
    Object.DestroyImmediate(Object)
    Object.FindObjectsOfType(Type)
    Object.FindObjectsOfType(Type, bool)
    Object.DontDestroyOnLoad(Object)
    Object.DestroyObject(Object, float)
    Object.DestroyObject(Object)
    Object.FindSceneObjectsOfType(Type)
    Object.FindObjectsOfTypeIncludingAssets(Type)
    Object.FindObjectsOfType<T>()
    Object.FindObjectsOfType<T>(bool)
    Object.FindObjectOfType<T>()
    Object.FindObjectOfType<T>(bool)
    Object.FindObjectsOfTypeAll(Type)
    Object.FindObjectOfType(Type)
    Object.FindObjectOfType(Type, bool)
    Object.ToString()
    Object.name
    Object.hideFlags
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    object.MemberwiseClone()
    Namespace: Mechatronics.SystemGraph
    Assembly: solution.dll
    Syntax
    [Serializable]
    public class NodeRuntime : ScriptableObject
    Remarks

    Implement this class in conjunction with NodeCategory attribute to configure your node. See NodeCategoryAttribute for configuration attributes of your node.

    Fields

    Name Description
    _parent

    The bound SystemGraphComponent that coordinate events, scheduler and nodes

    _portList

    The port list

    _queryPath

    The query path

    _tickCPUTimeNs

    Store the last profiling time of the OnTick call of this Node

    Properties

    Name Description
    PortDataList

    Gets the port data list.

    QueryPath

    Gets the query path.

    TickCPUTimeNs

    Gets or sets the tick cpu time ns.

    Methods

    Name Description
    Disable()

    Forwarded OnDisable Unity event from the parent SystemGraphComponent

    Enable(ClockState)

    Forwarded OnEnable Unity event from the parent SystemGraphComponent

    FixedUpdate()

    Forwarded FixedUpdate Unity event from the parent SystemGraphComponent, if event is registered for this node.

    Initialize(SystemGraphComponent)

    Initialize is called by SystemGraphComponent parent to bind the parent to the Node and to call the InternalInitialize event of the node.

    InitializeDynamicPorts(SystemGraphComponent)

    Called at start of runtime execution to load ports from PortList. Override for custom behaviour on load.

    InternalInitialize()

    The implementation of this virtual function shall handle special initialization code to handle when the graph is initialized.

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

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

    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

    OnTick(double, double, ClockState, Signal)

    OnTick event received from the scheduler for this node waveform. This is received for every rising edge of the waveform at the frequency configured in the scheduler.

    Start()

    Forwarded Start Unity event from the parent SystemGraphComponent

    Update()

    Forwarded Update Unity event from the parent SystemGraphComponent, if event is registered for this node.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)