Delegate SerializationManager.CustomSerializationDelegate<T>
The delegate used when registering custom serialization for a type.
Namespace: MLAPI.Serialization
Assembly: Unity.Multiplayer.MLAPI.Runtime.dll
Syntax
public delegate void SerializationManager.CustomSerializationDelegate<T>(Stream stream, T instance)
Parameters
| Type | Name | Description |
|---|---|---|
| Stream | stream | The stream to write data to that is required to reconstruct the type in the deserialization delegate. |
| T | instance | The instance to serialize to the stream. |
Type Parameters
| Name | Description |
|---|---|
| T | The type to serialize. |