Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Vector4

Creates a new vector with given x, y, z, w components.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Constructor
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule

Vector4(float, float, float, float)

Creates a new vector with given x, y, z, w components.
public Vector4(float x, float y, float z, float w)

Parameters

Value for the x component.

Value for the y component.

Value for the z component.

Value for the w component.

Vector4(float, float, float)

Creates a new vector with given x, y, z components and sets
w
to zero.
public Vector4(float x, float y, float z)

Parameters

Value for the x component.

Value for the y component.

Value for the z component.

Vector4(float, float)

Creates a new vector with given x, y components and sets
z
and
w
to zero.
public Vector4(float x, float y)

Parameters

Value for the x component.

Value for the y component.