docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method OnTick

    OnTick(double, double, ClockState, Signal)

    Trigger a frame capture based on the wanted FPS.

    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
    bool

    Returns true if time integration was performed

    Overrides
    NodeRuntime.OnTick(double, double, Scheduler.ClockState, Scheduler.Signal)
    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)