Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


sizeDelta

The size of this RectTransform relative to the distances between the anchors.
Read time 1 minuteLast updated 4 days ago

Definition

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

Remarks

If the anchors are together, sizeDelta is the same as size. If the anchors are in each of the four corners of the parent, the sizeDelta is how much bigger or smaller the rectangle is compared to its parent.