Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


size

The width and height of the rectangle.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public Vector2 size { readonly get; set; }

Remarks

Size is measured from the Rect.position.