docs.unity3d.com
    Show / Hide Table of Contents

    Develop logic transitions with State Graphs

    You can use State Graphs to change behaviors of GameObjects based on specific conditions.

    Create a new state

    After you create a new graph file for a State Graph, you can create states to tell Visual Scripting what a GameObject does, and when.

    Create a transition

    Use transitions to tell Visual Scripting when a GameObject changes states. There's no restriction on how many transitions you can create.

    State Unit nodes

    You can use a State Unit node to nest a State Graph inside a Script Graph.

    In This Article
    • Create a new state
    • Create a transition
    • State Unit nodes
    Back to top
    Terms of use
    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