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