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
ClassContents

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

0
1
2

UXML

0
2

UXML