2 min read

Source: Roblox Creator Hub · CC BY 4.0 · View source · Code samples: MIT Imported 2026-10-03. Formatting adapted for this site.

AdornShading

Used by the Shading property on handle adornments (BoxHandleAdornment, SphereHandleAdornment, CylinderHandleAdornment, ConeHandleAdornment, PyramidHandleAdornment) to control whether the adornment is drawn unlit or lit by the scene, and whether it renders through occluding geometry or on top of everything.

Items

NameValueDescription
Default0Draws the adornment unlit and occluded by scene geometry like an ordinary world object.
Shaded1Draws the adornment lit by scene lighting and occluded by scene geometry.
XRay2Draws the adornment unlit and visible through geometry that would otherwise occlude it.
XRayShaded3Draws the adornment lit by scene lighting and visible through geometry that would otherwise occlude it.
AlwaysOnTop4Draws the adornment unlit on top of all other geometry with no depth testing.

Default

Draws the adornment unlit and occluded by scene geometry like an ordinary world object.

FieldValue
value0

Shaded

Draws the adornment lit by scene lighting and occluded by scene geometry.

FieldValue
value1

XRay

Draws the adornment unlit and visible through geometry that would otherwise occlude it.

FieldValue
value2

XRayShaded

Draws the adornment lit by scene lighting and visible through geometry that would otherwise occlude it.

FieldValue
value3

AlwaysOnTop

Draws the adornment unlit on top of all other geometry with no depth testing.

FieldValue
value4