Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


paddingRect

The rectangle of the padding area of the element, in the local space of the element.
Read time 1 minuteLast updated 6 days ago

Definition

protected Rect paddingRect { get; }

Remarks

In the box model used by UI Toolkit, the padding area refers to the inner rectangle. The inner rectangle includes the _contentRect and padding, but excludes the border.