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