docs.unity.cn
    Show / Hide Table of Contents

    Class NodeClock

    Class NodeClock. Implements the NodeRuntime

    Inheritance
    Object
    Object
    ScriptableObject
    NodeRuntime
    NodeClock
    Inherited Members
    NodeRuntime._parent
    NodeRuntime._portList
    NodeRuntime._queryPath
    NodeRuntime.QueryPath
    NodeRuntime._tickCPUTimeNs
    NodeRuntime.TickCPUTimeNs
    NodeRuntime.PortDataList
    NodeRuntime.Initialize(SystemGraphComponent)
    NodeRuntime.InternalInitialize()
    NodeRuntime.Start()
    NodeRuntime.Disable()
    NodeRuntime.Update()
    NodeRuntime.FixedUpdate()
    NodeRuntime.OnPortAdded(String, Type, String, PortDirection, FieldExtra, IPortType)
    NodeRuntime.OnPortRemoved(String)
    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
    [NodeCategory("Type", "Clock", NodeTick.Synchronous, (LifeCycle)0, 0F, NodeMode.Standard, false, Mode = NodeMode.Standard)]
    public class NodeClock : NodeRuntime

    Fields

    _signal

    The signal

    Declaration
    [Field("Signal", PortDirection.Right, FieldExtra.Write)]
    [SerializeField]
    public PortType<uint> _signal
    Field Value
    Type Description
    PortType<UInt32>

    Methods

    Enable(Scheduler.ClockState)

    Forwarded OnEnable Unity event from the parent SystemGraphComponent

    Declaration
    public override void Enable(Scheduler.ClockState clockState)
    Parameters
    Type Name Description
    Scheduler.ClockState clockState

    The parameters of the waveform associated to this node

    Overrides
    NodeRuntime.Enable(Scheduler.ClockState)

    OnTick(Double, Double, Scheduler.ClockState, Scheduler.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.

    Declaration
    public override bool OnTick(double now, double eventTime, Scheduler.ClockState clockState, Scheduler.Signal signal)
    Parameters
    Type Name Description
    Double now

    The current time in seconds of the scheduler clocksource

    Double eventTime

    The current time in seconds of the scheduler waveform. This is independent from the clocksource time and aligned to every rising edge time in the waveform.

    Scheduler.ClockState clockState

    The current parameters of the waveform event associated to this node

    Scheduler.Signal signal

    Signals that the scheduler pass to the OnTick event receiver. These are signals that describe the action that should be done in the Node. For example, integrate this tick as multiple events.

    Returns
    Type Description
    Boolean

    Returns true if time integration was performed

    Overrides
    NodeRuntime.OnTick(Double, Double, Scheduler.ClockState, Scheduler.Signal)

    See Also

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