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