Utility classes for changing an element's opacity property. Opacity will affect the element with the applied class, and all child elements unless overridden.

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

Where value includes:

  • # - for the float value for that opacity property.
ClassContents

Note that opacity: 1 is the default value for opacity in Unity. Unless the value needs to be overridden from a parent, or controlled for a transition, the o-100class is not needed.

Opacity of 0 will produce the same appearance as visibility: hidden, but visibility hidden will stop pseudo states from triggering, while the opacity property will not.

0
1
2
3

UXML