Skip to content

Unit Reference OnEveryXSeconds

S2NX7 edited this page Sep 30, 2025 · 1 revision

OnEveryXSeconds

UnitImage

This unit triggers an event repeatedly at intervals defined in seconds. You can choose whether it respects Unity's Time.timeScale or uses unscaled time.

Input Ports

  • seconds : The number of seconds to wait before triggering the event.
  • unscaledTime : If true, the unit ignores the time scale (Time.timeScale) and uses unscaled delta time.

Output Ports

  • Trigger : Triggers on each interval.

Behavior

  • Keeps track of elapsed time internally.
  • When the elapsed time reaches or exceeds the specified interval, it triggers the event and resets the timer.
  • Useful for periodic updates, timed events, or repeating actions in your graph.

Clone this wiki locally