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