Skip to content

Unit Reference YieldNode

S2NX7 edited this page Sep 30, 2025 · 2 revisions

YieldNode

Screenshot 2025-09-30 165035

The Yield node pauses execution until a specified Unity coroutine or yieldable instruction completes.
It allows Visual Scripting graphs to wait on IEnumerator, Coroutine, CustomYieldInstruction or YieldInstruction like WaitForSeconds. You can switch between the type of Yield in the Unit Header.

Input Ports

  • instruction : A YieldInstruction (e.g., WaitForSeconds, WaitForEndOfFrame) or a CustomYieldInstruction (e.g., WaitUntil, WaitWhile) that determines how long execution will pause.
  • enumerator : An IEnumerator that will be stepped through until it is completed.
  • coroutine : A running Coroutine instance to yield on until it finishes execution.

Output Ports

  • exit : Triggered once the yield operation completes, continuing the control flow.

Clone this wiki locally