Class NetworkVariableByte
A NetworkVariable that holds bytes and support serialization
Implements
Inherited Members
Namespace: MLAPI.NetworkVariable
Assembly: Unity.Multiplayer.MLAPI.Runtime.dll
Syntax
[Serializable]
public class NetworkVariableByte : NetworkVariable<byte>, INetworkVariable
Constructors
NetworkVariableByte()
Creates a NetworkVariable with the default value and settings
Declaration
public NetworkVariableByte()
NetworkVariableByte(NetworkVariableSettings)
Creates a NetworkVariable with the default value and custom settings
Declaration
public NetworkVariableByte(NetworkVariableSettings settings)
Parameters
Type | Name | Description |
---|---|---|
NetworkVariableSettings | settings | The settings to use for the NetworkVariable |
NetworkVariableByte(NetworkVariableSettings, byte)
Creates a NetworkVariable with a custom value and custom settings
Declaration
public NetworkVariableByte(NetworkVariableSettings settings, byte value)
Parameters
Type | Name | Description |
---|---|---|
NetworkVariableSettings | settings | The settings to use for the NetworkVariable |
byte | value | The initial value to use for the NetworkVariable |
NetworkVariableByte(byte)
Creates a NetworkVariable with a custom value and the default settings
Declaration
public NetworkVariableByte(byte value)
Parameters
Type | Name | Description |
---|---|---|
byte | value | The initial value to use for the NetworkVariable |