Skip to content

LabelShadow Component Reference

The LabelShadow component adds a shadow effect to the Label component.

label-shadow

Click the Add Component button at the bottom of the Inspector panel and select LabelShadow from the UI to add the LabelShadow component to the node.

Notes:

  1. LabelShadow can only be used for system fonts or TTF fonts.
  2. LabelShadow does not take effect when the CacheMode property of the Label component is set to CHAR.
  3. LabelShadow does not support Windows and Mac native platforms.

LabelShadow script interface, please refer to the LabelShadow API for details.

LabelShadow Properties

PropertyDescription
ColorThe color of the shadow.
OffsetOffset between label and shadow.
BlurA non-negative float specifying the level of shadow blur.