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