docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Runtime Serialization sample

    The Runtime Serialization sample demonstrates how to implement runtime serialization of behavior agents and their states in Unity. It includes a simple scenario where the agents move and act autonomously, and you can save and load their states across play sessions.

    Topic Description
    Set up and run the sample Import, run, and explore the sample to check agents in action.
    How behavior graph works Learn how the Agent behavior graph drives movement through blackboard variables, looping sequences, and a custom node for randomized navigation.
    Scripts and serialization architecture Explore how the sample manages agent serialization, deserialization, and object reference resolution through core scripts and data classes.

    Additional resources

    • Save and load running graph state
    • Set up and run the sample
    In This Article
    Back to top
    Copyright © 2025 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)