Utility classes for changing an element's text stroke property.

Classes for text stroke are named using the format: [text]-[stroke]-[value].

Where value includes:

  • # - px value for that -unity-text-outline-width property. By default, stroke classes start at 0px, and increment by 1px until stopping at 5px.
ClassContents

Note that -unity-text-outline-width: 0px is the default value for text stroke in Unity. Unless the value needs to be overridden from a parent, the text-stroke-0 class is not needed.

text-stroke-1
text-stroke-2
text-stroke-3

UXML