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