Interface RuntimeSerializationUtility.IUnityObjectResolver<TSerializedFormat>
Interface for all object resolvers. During runtime serialization, an object resolver is required to convert an object to and from a unique ID.
Namespace: Unity.Behavior
Assembly: Unity.Behavior.dll
Syntax
public interface RuntimeSerializationUtility.IUnityObjectResolver<TSerializedFormat>
Type Parameters
| Name | Description |
|---|---|
| TSerializedFormat | Serialized output type. |
Methods
Map(Object)
Converts an object to a serializable id.
Declaration
TSerializedFormat Map(Object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| Object | obj | Object to convert. |
Returns
| Type | Description |
|---|---|
| TSerializedFormat | Serializable ID. |
Resolve<TSerializedType>(TSerializedFormat)
Used to convert a serializable ID to an object.
Declaration
TSerializedType Resolve<TSerializedType>(TSerializedFormat mappedValue) where TSerializedType : Object
Parameters
| Type | Name | Description |
|---|---|---|
| TSerializedFormat | mappedValue | Serializable ID. |
Returns
| Type | Description |
|---|---|
| TSerializedType | The object created for the serialized ID. |
Type Parameters
| Name | Description |
|---|---|
| TSerializedType | Serialized ID type. |