-
-
Notifications
You must be signed in to change notification settings - Fork 0
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. |
Name | Description |
---|---|
Interval | The timer interval in seconds. |
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. |
Name | Description | Parameter |
---|---|---|
Elapsed | Invoked when the interval of the timer elapses. | None |
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).
Logic Components | Terminology | Programming | External Components | |
---|---|---|---|---|
Logic Animator | Activator | Custom Logic | Reactive Dynamic Light | |
Logic Auto | Caller | Custom Inspector | ||
Logic Branch | Delay | Use Key | ||
Logic Case | Target | |||
Logic Collision Pair | User Inputs | |||
Logic Compare | ||||
Logic Counter | ||||
Logic Destroy | ||||
Logic Filter | ||||
Logic Group | ||||
Logic Instantiate | ||||
Logic Log | ||||
Logic Move Linear | ||||
Logic Relay | ||||
Logic Timer | ||||
Logic Trigger | ||||
Logic Unity |