Skip to content

Logic Timer

Henry de Jongh edited this page Mar 10, 2023 · 2 revisions
Description Icon
A reactive logic component that invokes an output at regular intervals.

Parameters

Name Description
Interval The timer interval in seconds.

Inputs

Name Description Parameter
Reset Resets the timer so that it must wait the full interval before the timer elapses. None
Elapse Resets the timer and forces the timer to elapse immediately invoking the output. None
SetInterval Sets the interval of the timer to the float parameter. seconds (float) The timer interval in seconds.
SetTime Sets the elapsed time of the timer to the float parameter. seconds (float) The elapsed time in seconds.
AdjustTime Adjusts the elapsed time of the timer by the float parameter (positive to add and elapse the timer sooner, negative to subtract and elapse the timer later; but it can't go negative below zero seconds elapsed). seconds (float) The elapsed time in seconds to be added or subtracted.

Outputs

Name Description Parameter
Elapsed Invoked when the interval of the timer elapses. None

Remarks

The Activator is always the logic timer itself. The only exception is invoking the Elapse input.

All logic updates are done during Unity's FixedUpdate, so the timer cannot run any faster. The default is 50Hz (50 times per second).

Clone this wiki locally