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 4 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 VisualElement.contentRect and padding, but excludes the border.