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