Interface RuntimeSerializationUtility.IBehaviorSerializer<TSerializedFormat>
Interface for behavior serializor implementations.
Namespace: Unity.Behavior
Assembly: Unity.Behavior.dll
Syntax
public interface RuntimeSerializationUtility.IBehaviorSerializer<TSerializedFormat>
Type Parameters
| Name | Description |
|---|---|
| TSerializedFormat | Serialized output type. |
Methods
Deserialize(TSerializedFormat, BehaviorGraph, IUnityObjectResolver<string>)
Deserializes a BehaviorGraph on to a graph object.
Declaration
void Deserialize(TSerializedFormat serialized, BehaviorGraph graph, RuntimeSerializationUtility.IUnityObjectResolver<string> resolver)
Parameters
| Type | Name | Description |
|---|---|---|
| TSerializedFormat | serialized | 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.
Declaration
TSerializedFormat 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 |
|---|---|
| TSerializedFormat | The serialized output |