Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Vector2.Set

Set(new_x: float, new_y: float): void;
void Set(float new_x, float new_y);
def Set(new_x as float, new_y as float) as void

Description

Set x and y components of an existing Vector2.