docs.unity3d.com
    Show / Hide Table of Contents

    Live editing

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

    Visual scripting supports live editing. In live editing you can create and edit graphs while in play mode and see the visual scripting updates in real time. This provides a fast way to iterate and test ideas without the need to recompile project changes.

    Working in live edit

    Live editing is not limited to tweaking values — you can add and remove units, connections (edges), etc while live. Anything that can be done in a normal edit, can be done in a live edit.

    In accordance with the Unity convention:

    • Changes made to embeds are reverted when you exit play mode - the changes live inside components.
    • Changes made to graphs are saved when you exit play mode - the changes live inside assets

    Tip: To preserve the changes made to a component graph, copy the modified units before exiting play mode. You'll then be able to paste back while in edit mode.

    When in live mode, visual scripting is displayed the flow as droplets on connections.

    To disable these animations on either the value connections, the control connections, or both, uncheck the Animate Control Connections or the Animate Value Connections from the editor preferences window (Unity > Preferences > Visual Scripting > Script Graphs).

    Saving changes through persistence

    Visual scripting graphs automatically saves the changes made during play mode.

    Propagation across graphs

    Changes made to graphs are instantly shared across all instances of that graph.

    In This Article
    • Working in live edit
    • Saving changes through persistence
    • Propagation across graphs
    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