Method WriteNetworkSerializable
WriteNetworkSerializable<T>(in T)
Write an INetworkSerializable
Declaration
public void WriteNetworkSerializable<T>(in T value) where T : INetworkSerializable
Parameters
Type | Name | Description |
---|---|---|
T | value | The value to write |
Type Parameters
Name | Description |
---|---|
T |
WriteNetworkSerializable<T>(T[], int, int)
Write an array of INetworkSerializables
Declaration
public void WriteNetworkSerializable<T>(T[] array, int count = -1, int offset = 0) where T : INetworkSerializable
Parameters
Type | Name | Description |
---|---|---|
T[] | array | The value to write |
int | count | |
int | offset |
Type Parameters
Name | Description |
---|---|
T |
WriteNetworkSerializable<T>(NativeArray<T>, int, int)
Write a NativeArray of INetworkSerializables
Declaration
public void WriteNetworkSerializable<T>(NativeArray<T> array, int count = -1, int offset = 0) where T : unmanaged, INetworkSerializable
Parameters
Type | Name | Description |
---|---|---|
NativeArray<T> | array | The value to write |
int | count | |
int | offset |
Type Parameters
Name | Description |
---|---|
T |