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