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 |
---|---|---|
TSerialized |
serialized | 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.
Declaration
TSerializedFormat 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 |
---|---|
TSerialized |
The serialized output |