Getting started
Resources
Flex
Spacing
Layout
Size
Typography
Background
Border
Transition
Utility classes for changing an element's width, max width, and min width properties.
Unity's UI Toolkit uses border box as it's box model. For a visual representation, check out Unity's page on Common USS Properties.
Classes for width are named using the format: [property]-[value]
.
Where property includes:
w
- for width
wmax
- for max-width
wmin
- for min-width
Where value includes:
#
- % value for that width/max-width/min-width
property.Class | Contents |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
UXML
UXML
UXML
On this page