Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Set(float, float)

Set x and y components of an existing Vector2.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public void Set(float newX, float newY)

Parameters

newX

The x component to set.

newY

The y component to set.