Getting started
Resources
Flex
Spacing
Layout
Size
Typography
Background
Border
Transition
Utility classes for changing an element's visibility property. Visibility only changes the element's appearance and does not affect the UXML document's structure.
Regardless of whether the element is visible or hidden, it will continue to take up space in the UXML document and affect other elements. If your desired behaviour is to instead have the element take no space in the UXML document's layout, check out Display Utility Classes.
Classes for visibility are named using the format: [visibility]-[value]
.
Where value includes:
visible
- for visibility: visible
hidden
- for visibility: hidden
Class | Contents |
|
|
|
|
Note that visibility: visible
is the default value for visibility in Unity. Unless the value needs to be overridden from a parent, the visibility-visible
class is not needed.
UXML
UXML
On this page