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