docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class RuntimeSerializationUtility.JsonBehaviorSerializer

    Implementation for JSON serializer.

    Inheritance
    object
    RuntimeSerializationUtility.JsonBehaviorSerializer
    Implements
    RuntimeSerializationUtility.IBehaviorSerializer<string>
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.Behavior
    Assembly: Unity.Behavior.dll
    Syntax
    public class RuntimeSerializationUtility.JsonBehaviorSerializer : RuntimeSerializationUtility.IBehaviorSerializer<string>

    Methods

    Deserialize(string, BehaviorGraph, IUnityObjectResolver<string>)

    Deserializes JSON to a BehaviorGraph.

    Declaration
    public void Deserialize(string graphJson, BehaviorGraph graph, RuntimeSerializationUtility.IUnityObjectResolver<string> resolver)
    Parameters
    Type Name Description
    string graphJson

    Serialized data to be deserialized.

    BehaviorGraph graph

    BehaviorGraph to be updated.

    RuntimeSerializationUtility.IUnityObjectResolver<string> resolver

    The object resolver implementation to use.

    Serialize(BehaviorGraph, IUnityObjectResolver<string>)

    Serializes a BehaviorGraph into JSON.

    Declaration
    public string Serialize(BehaviorGraph graph, RuntimeSerializationUtility.IUnityObjectResolver<string> resolver)
    Parameters
    Type Name Description
    BehaviorGraph graph

    The Graph to serialize.

    RuntimeSerializationUtility.IUnityObjectResolver<string> resolver

    The object resolver implementation to use.

    Returns
    Type Description
    string

    The serialized output

    Implements

    RuntimeSerializationUtility.IBehaviorSerializer<TSerializedFormat>
    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)