docs.unity3d.com
    Show / Hide Table of Contents

    The State Unit

    Note
    For versions 2019/2020 LTS, download the visual scripting solution from the Unity Asset Store.

    State Units are similar to super units, however for state graphs rather than for script graphs; you can nest a whole state graph into a single unit in a parent script graph.

    A state unit has two control input ports to indicate when to start and stop it, and two matching control output ports to specify what to do after.

    When a state unit is started, all the start states in its nested state graph are entered. When it is stopped, every state and transition in its nested graph is marked as inactive.

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your 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.
    Generated by DocFX on 18 October 2023