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