docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Create a branch with generative AI

    Creating a branch using generative artificial intelligence (AI) is essential for developing intelligent AI behaviors in Muse Behavior. By defining alternative paths or decision points within the AI's behavior logic, branches allow for the creation of dynamic and responsive behaviors.

    This process enables the AI to handle various scenarios and conditions, making decisions and taking different actions based on specific inputs or situations. You can use generative AI to simplify the creation of these branches, ensuring that even simple behaviors can evolve into complex responses within your project.

    To create a behavior graph or a branch of an exiting behavior graph using generative AI, perform the following steps:

    1. Right-click an empty area of the Muse Behavior graph editor and select Generate branch from text.

    2. Enter a descriptive prompt for the desired behavior and select Use Generative AI. For example, Say "I am here" then wait for two seconds. After that, do these two actions at the same time: move to the Target, say "Hello, how are you?".

      Muse Behavior generates a new sequence of nodes. New brach with nodes

      If you specify an action that doesn't exist in the project, Muse Behavior creates a placeholder node in the behavior graph. For more information on how to work with placeholder nodes, refer to Placeholder node in a behavior graph.

    3. (Optional) To refine the generated behavior, type the changes you want to make in the Correction? panel. For example, Instead of sequence, I want these actions to be done in parallel..

    4. Select Apply Correction.

      Updated branch Note that the new Run In Parallel node replaces the Sequence node used in the behavior graph generated in Step 2.

    After generating a branch, you can modify the behavior graph as needed. You can rearrange the nodes to fit your requirements, including adding, deleting, or editing the nodes and branches. Generative AI typically provides a good foundation for the behavior, making it easier for you to refine and customize.

    Additional resources

    • Create an action node using generative AI
    • Placeholder node in a behavior graph
    • Best practices for using generative AI
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)