Getting started
Resources
Flex
Spacing
Layout
Size
Typography
Background
Border
Transition
Utility classes for changing an element's border radius property. Includes omni-directional, single corner, and directional corner variants.
Unity does not support rem/em units, or allow calc() methods in USS files. All border-radius classes use px values, and follow the default increment stated unless changed by you. Learn more about Customizing Utility Classes.
Classes for border radius are named using the format: [br]-[corner(s)]-[value]. Corner is optional, and if omitted, will be applied on all 4 corners.
Where corner includes:
nothing - for border-radius on all 4 cornerstl - for border-top-left-radiustr - for border-top-right-radiusbr - for border-bottom-right-radiusbl - for border-bottom-left-radiustop - for border-top-left-radius and border-top-right-radiusbottom - for border-bottom-left-radius and border-bottom-right-radiusleft - for border-top-left-radius and border-bottom-left-radiusright - for border-top-right-radius and border-bottom-right-radiusWhere value includes:
# - px value for that border-radius property. By default, border radius classes start at 0px, and increment by 5px until stopping at 25px.full - 1000px value for the border-radius property.| Class | Contents |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
Note that border-radius: 0px is the default value for border radius in Unity. Unless needed for a special case, the br-0 class is not needed.
UXML
UXML
UXML
UXML
On this page