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