Utility classes for changing an element's overflow property. Overflow allows you to manage how child content is presented when child content dimensions are larger than the parent container.

Classes for overflow are named using the format: [overflow]-[value].

Where value includes:

  • visible - for overflow: visible
  • hidden - for overflow: hidden
ClassContents

Note that overflow: visible is the default value for overflow in Unity. Unless the value needs to be overridden from a parent, the overflow-visibleclass is not needed.

This text content is too large and will overflow the parent's bounds

UXML

This text content is too large but will not overflow the parent's bounds

UXML