Documentation

​
​

Development

User Acquisition

Monetization

Industry

Unity Studio

Open Unity Studio

Unity Studio

​
​
Unity Studio
  • What's new in Unity Studio
  • Introduction to Unity Studio
  • Launch Unity Studio
  • Create your first Unity Studio project
  • Develop with Unity Studio
    • The Unity Studio interface
    • Save your progress
    • GameObjects
    • Assets
    • Materials
    • Scene settings
    • Logic
      • Introduction to Logic
      • Create a Logic script
      • The Logic Editor interface
      • Methods, variables, and parameters
      • Nodes
        • Event Listener nodes
        • Event nodes
        • Action nodes
        • Constant nodes
        • Flow Control nodes
          • If node
          • If else node
          • For loop node
          • While loop node
          • For each loop node
          • Return node
          • Continue loop node
          • Break loop node
        • Operator nodes
        • Utility nodes
      • Logic examples
    • The UI Creator
    • Animation
    • AI features
  • Collaborate in Unity Studio
  • Export drafts to the Unity Editor
  • Publish and share
  • Troubleshooting Unity Studio issues
  • Report bugs and share feedback
  • Manage your analytics and marketing preferences
  1. Unity Studio
  2. Develop with Unity Studio
  3. Logic
  4. Nodes

Flow Control nodes

Nodes that control the order of actions and conditions (if/then, loops).
Read time 1 minute
Last updated 10 months ago

If node
Execute actions only if a specified condition is true.
If else node
Execute one set of actions if a condition is true, and another set if it's false.
For loop node
Repeat a set of actions a specified number of times.
While loop node
Repeat a set of actions as long as a specified condition is true.
For each loop node
Repeat a set of actions for each item in a collection.
Return node
Exit a function and return a value.
Continue loop node
Skip the rest of the current loop iteration and continue with the next one.
Break loop node
Exit a loop before it reaches the end.

Copyright © 2026 Unity Technologies
LegalPrivacy PolicyCookiesDocumentation Terms of UseDo Not Sell or Share My Personal InformationYour Privacy Choices (Cookie Settings)

"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S and elsewhere (more info here). Other names or brands are trademarks of their respective owners.

Some pages are machine-translated for convenience, and may contain inaccuracies. In the event of conflicting information, the English version is authoritative.


    Report a problem with this page