Class RuntimeSerializationUtility.JsonBehaviorSerializer
Implementation fo JSON serializor.
Implements
Inherited Members
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. |
Behavior |
graph | BehaviorGraph to be updated. |
Runtime |
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 |
---|---|---|
Behavior |
graph | The Graph to serialize. |
Runtime |
resolver | The object resolver implementation to use. |
Returns
Type | Description |
---|---|
string | The serialized output |