Source: Roblox Creator Hub · CC BY 4.0 · View source · Code samples: MIT Imported 2026-10-03. Formatting adapted for this site.
ApplyShadowMode
Controls which part of a parent UI element a UIShadow applies its drop shadow to. The default value is ApplyShadowMode.Shape, which casts a shadow from the element's bounding frame. Set the value to ApplyShadowMode.Text to cast the shadow from rendered glyphs instead; this has no effect if the parent element is not a text-rendering object such as TextLabel or TextButton.
Items
| Name | Value | Description |
|---|---|---|
| Shape | 0 | The shadow is applied to the parent element's frame. |
| Text | 1 | The shadow is applied to the parent element's text; no-op if the parent is not a text element. |
Shape
The shadow is applied to the parent element's frame.
| Field | Value |
|---|---|
| value | 0 |
Text
The shadow is applied to the parent element's text; no-op if the parent is not a text element.
| Field | Value |
|---|---|
| value | 1 |