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