Skip to main content

Unity.Netcode.INetworkSerializable

Interface for implementing custom serializable types.

Namespace: System.Dynamic.ExpandoObject#
Assembly: MLAPI.dll#
Syntax#
public interface INetworkSerializable

NetworkSerialize\<T>(BufferSerializer\<T>)#

Provides bi-directional serialization to read and write the desired data to serialize this type.

Declaration#

void NetworkSerialize<T>(BufferSerializer<T> serializer)
where T : IReaderWriter

Parameters#

TypeNameDescription
BufferSerializer\<T>serializerThe serializer to use to read and write the data.

Type Parameters#

NameDescription
TEither BufferSerializerReader or BufferSerializerWriter, depending whether the serializer is in read mode or write mode.