Skip to content

Unit Reference ManualEvent

S2NX7 edited this page Sep 30, 2025 · 2 revisions

ManualEvent

Screenshot 2025-09-30 141641

This unit allows you to manually trigger an event in a graph, either immediately or deferred, depending on the editor/play state and whether it is marked as a coroutine. It's useful for testing flows or invoking events programmatically without requiring external input or game events.

Key Features

  • Can trigger even if the state or machine is inactive (IngoreGraphState).
  • Supports editor and play mode, with special handling for paused play sessions.
  • Can be triggered via a Node Button in the graph.
  • Uses internal tick tracking to determine if the event should fire during the next update.

Usage Notes

  • In Edit mode, the event fires immediately.
  • In Play mode:
    • If not paused, non-coroutine events defer to the next update tick.
    • Coroutine events always defer to ensure proper Unity coroutine behavior.
    • Paused events fire immediately.
  • If marked as a coroutine but run in Edit mode, a warning is logged and it fires immediately.

Output Ports

  • Trigger : Triggers when the Node button is pressed.
Clone this wiki locally