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.

Rect.max

var max: Vector2;
Vector2 max;
max as Vector2

Description

Upper right corner of the rectangle.

Changing this value will preserve the left and bottom side of rectangle (so width and height will change as well).