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