Skip to content

UI components

Every field below is derived from the engine’s own component registry — the same one the editor’s Details panel reads — so the types and defaults here are the values you get when you add the component, and they cannot drift from the code. The prose that explains how to use each one lives in the guides linked per entry.

CanvasEffect

Draws the screen UI of its Canvas's sorting layer into a picture of its own and lays it on the frame through a material: a lens, scan lines, a glow over a whole HUD.

Explained in ui/overview.

FieldTypeDefaultNotes
materialAsset<material>noneA material with a PostProcess shader. The screen UI on this Canvas's sorting layer is drawn into a picture of its own, and this material lays that picture (u_texture, colour weighted by its alpha) on the frame.

ContentRect

The rectangle world content occupies — a size and the pivot the transform sits on — that its sprite, text and clip mask follow.

Explained in ui/overview.

FieldTypeDefaultNotes
sizeVec2(100, 100)Width and height of the content in local units (before scale). Range ≥ 0.
pivotVec2(0.5, 0.5)The point of the rectangle the entity sits on, as a fraction of its size (0.5,0.5 = centre). Rotation and scale turn about it.

Draggable

Lets the pointer drag a UI node, optionally constrained to an axis.

Explained in ui/interaction.

FieldTypeDefaultNotes
enabledbooleantrueWhether this entity can be dragged at all.
dragThresholdnumber5Pointer travel before a press becomes a drag. Range ≥ 0.
lockXbooleanfalsePin the X axis; the drag only moves in Y.
lockYbooleanfalsePin the Y axis; the drag only moves in X.
constrainMinbooleanfalseApply the lower bound below.
constraintMinVec2(0, 0)Lowest world position the drag may reach.
constrainMaxbooleanfalseApply the upper bound below.
constraintMaxVec2(0, 0)Highest world position the drag may reach.

DragStatetransient

Transient per-frame geometry of a drag in progress; the drag system rebuilds it, scene saves omit it.

Explained in ui/interaction.

FieldTypeDefaultNotes
isDraggingbooleanfalse
startWorldPosVec2(0, 0)
currentWorldPosVec2(0, 0)
deltaWorldVec2(0, 0)
totalDeltaWorldVec2(0, 0)
pointerStartWorldVec2(0, 0)

FlexContainer

Lays children out along an axis — direction, justification, alignment, wrapping and gaps.

Explained in ui/layout.

FieldTypeDefaultNotes
directionenumRow One of Row, Column, RowReverse, ColumnReverse.
wrapenumNoWrap One of NoWrap, Wrap.
justifyContentenumStart One of Start, Center, End, SpaceBetween, SpaceAround, SpaceEvenly.
alignItemsenumStretch One of Start, Center, End, Stretch.
alignContentenumStart One of Start, Center, End, Stretch, SpaceBetween, SpaceAround.
gapVec2(0, 0)
paddingPadding{"left":0,"top":0,"right":0,"bottom":0}

Focusable

Puts a widget in the keyboard focus order.

Explained in ui/interaction.

FieldTypeDefaultNotes
tabIndexnumber0
isFocusedbooleanfalse

Interactable

Makes a UI node hit-testable, so pointer events can land on it.

Explained in ui/interaction.

FieldTypeDefaultNotes
enabledbooleantrue
blockRaycastbooleantrue
raycastTargetbooleantrue

RectAnchors

Pins content placed by its transform to the edges or the centre of its parent's ContentRect, or of the screen: each axis stretched, pinned to an edge, or centred, with margins in units or as a fraction.

Explained in ui/overview.

FieldTypeDefaultNotes
alignFlagsnumber0
leftnumber0
rightnumber0
topnumber0
bottomnumber0
horizontalCenternumber0
verticalCenternumber0
isAbsLeftbooleantrue
isAbsRightbooleantrue
isAbsTopbooleantrue
isAbsBottombooleantrue
isAbsHorizontalCenterbooleantrue
isAbsVerticalCenterbooleantrue
alignModenumber1
enabledbooleantrue

SafeArea

Insets an absolute UI node clear of notches and rounded corners.

Explained in core-concepts/screen.

FieldTypeDefaultNotes
applyTopbooleantrue
applyBottombooleantrue
applyLeftbooleantrue
applyRightbooleantrue
avoidHostMenubooleanfalse

Text

UI text — font, size, alignment, colour, outline, shadow, rich-text markup and a localization key.

Explained in ui/text.

FieldTypeDefaultNotes
contentstringempty
i18nKeyenum (localeKeys)emptyLocalization key — when set, content is resolved from the Localization catalogs (and re-resolved on locale switch). Leave empty for plain text.
fontAsset<font>noneA font file this project ships (.ttf / .otf). Overrides Font Family when set; leave empty to use a font the host already has.
fontFamilystringemptyA font the HOST already has (system or page-loaded). Ignored when Font is set.
fontSizenumber24
colorColor#ffffff
alignenumLeftHorizontal alignment: within the layout box when the entity has a UINode, else it anchors the text to the entity origin (left/center/right edge). One of Left, Center, Right.
verticalAlignenumTopVertical alignment: within the layout box when the entity has a UINode, else it anchors the text to the entity origin (top/middle/bottom). One of Top, Middle, Bottom.
wordWrapbooleantrue
overflowenumVisibleWhat text too big for its box does. Needs a layout box: Clip and Ellipsis drop the lines past its height and trim a line past its width; Shrink sets the text smaller until it fits both. One of Visible, Clip, Ellipsis, Shrink, ResizeHeight.
lineHeightnumber1.2
letterSpacingnumber0Extra space after every glyph, in the same px as Font Size. Negative draws the glyphs closer. Wrapping, alignment and overflow measure with it.
boldbooleanfalse
italicbooleanfalse
strokeColorColor#000000
strokeWidthnumber0
shadowColorColor#000000
shadowBlurnumber0
shadowOffsetXnumber0
shadowOffsetYnumber0
underlinebooleanfalseDraw a line under each line of text, using the underscore of the font.
richTextbooleanfalse
renderModeenumAuto One of Auto, Bitmap, Sdf.
layernumber0Draw layer for a text standing in the WORLD (no UINode) — read like Sprite/ShapeRenderer layer, so a label can sit in front of the content around it. Ignored inside a Canvas, where the UI render order decides.
boxWidthnumber0Layout box width for a text with no UINode (0 = no box: the origin is the box). Alignment, wrapping and overflow work inside it. A UINode, if present, decides the box instead.
boxHeightnumber0Layout box height (0 = none). Vertical alignment and Clip/Ellipsis need it.
boxPivotVec2(0.5, 0.5)Where the entity origin sits in the box, as a fraction from its left/bottom edge: (0.5, 0.5) is the centre, (0, 1) the top-left corner.
enabledbooleantrue

TextInput

An editable text field with a caret, selection and IME support.

Explained in ui/widgets.

FieldTypeDefaultNotes
valuestringempty
placeholderstringempty
placeholderI18nKeyenum (localeKeys)emptyTranslate the empty-field hint through the Localization resource. Leave empty for a literal placeholder.
placeholderColorColor#999999
fontAsset<font>noneA font file this project ships (.ttf / .otf). Overrides Font Family when set; leave empty to use a font the host already has.
fontFamilystringemptyA font the HOST already has (system or page-loaded). Ignored when Font is set.
fontSizenumber16
colorColor#ffffff
backgroundColorColor#262626
paddingnumber6
maxLengthnumber0
inputFilterenumNoneWhich characters the field accepts. Digits keeps only 0-9, whether typed or pasted, for a count or a price. One of None, Digits, Decimal, Phone.
multilinebooleanfalse
passwordbooleanfalse
readOnlybooleanfalse
focusedbooleanfalse
cursorPosnumber0
textAlignenumLeftWhere the value sits in the field. A single line holds the alignment while it fits, then scrolls to follow the caret. One of Left, Center, Right.
renderModeenumAutoGlyph pipeline for the field text — Auto (hinted bitmap when unscaled, SDF once scaled), always Bitmap, or always SDF. One of Auto, Bitmap, Sdf.

ThemeStyle

Records which theme role an entity's colours came from, so a live theme swap can repaint it.

Explained in ui/theming.

FieldTypeDefaultNotes
visualunknown—
textunknown—
statesobjectempty
inputunknown—

UIColorPicker

HSV/RGB/HEX and alpha editing with canonical RGBA events for UI, sprites and materials.

Explained in ui/widgets.

FieldTypeDefaultNotes
colorColor#3790e0
alphaEnabledbooleantrue
formatenumHSV + HEX One of HSV + HEX, RGB + HEX.
rememberColorsbooleantrue
historyLimitnumber8 Range 0–32, step 1.
historyarrayempty
svEntitynone
alphaRampEntitynone
cursorEntitynone
hueEntitynone
alphaEntitynone
fieldsEntity
hexEntitynone
historyRootEntitynone
rememberButtonEntitynone
previewEntitynone

UIConsumesDragtransient

Transient input ownership for drag controls: enclosing lists keep wheel input but do not start a competing drag scroll.

Explained in ui/widgets.

A tag — it carries no fields.

UIController

Shared named page state a whole subtree switches on — no bespoke per-widget state.

Explained in ui/controllers.

FieldTypeDefaultNotes
controllersarrayempty

UIDialog

A modal dialog surface — backdrop, result, and open/close state.

Explained in ui/widgets.

FieldTypeDefaultNotes
closeOnEscapebooleantrue
closeOnBackdropbooleantrue

UIDropdown

A dropdown selector: its options and the selected index.

Explained in ui/widgets.

FieldTypeDefaultNotes
optionsarrayempty
selectedIndexnumber0
optionHeightnumber32
labelEntitynone

UIGear

Per-page field values a controller drives declaratively, authored from the Details panel.

Explained in ui/controllers.

FieldTypeDefaultNotes
bindingsarrayempty

UIInteractiontransient

Live pointer state for an interactable node — hovered, pressed, and the frame's transitions.

Explained in ui/interaction.

FieldTypeDefaultNotes
hoveredbooleanfalse
pressedbooleanfalse
justPressedbooleanfalse
justReleasedbooleanfalse

UIMask

Clips descendants to this node's rect, with an optional alpha cutoff.

Explained in ui/lists.

FieldTypeDefaultNotes
enabledbooleantrue
modeenumScissor One of Scissor, Stencil.
alphaCutoffnumber0Stencil only: above 0, clip to the mask sprite's shape instead of its box.

UINode

The UI box: size, position, margins and padding in design pixels. Every UI entity has one.

Explained in ui/layout.

FieldTypeDefaultNotes
positionenumRelative One of Relative, Absolute.
displayenumFlexNone removes this node and its whole subtree from layout, rendering and input. One of Flex, None.
opacitynumber1Subtree opacity, multiplied down the tree. Fades this node and everything under it. Range 0–1.
pointerEventsenumAutoNone makes this node and its subtree transparent to the pointer — hits pass through to what is behind. One of Auto, None, Receive.
widthDimension{"value":0,"unit":2}
heightDimension{"value":0,"unit":2}
minWidthDimension{"value":0,"unit":2}
minHeightDimension{"value":0,"unit":2}
maxWidthDimension{"value":0,"unit":2}
maxHeightDimension{"value":0,"unit":2}
flexGrownumber0
flexShrinknumber1
flexBasisDimension{"value":0,"unit":2}
alignSelfenumAuto One of Auto, Start, Center, End, Stretch.
marginLeftDimension{"value":0,"unit":0}
marginTopDimension{"value":0,"unit":0}
marginRightDimension{"value":0,"unit":0}
marginBottomDimension{"value":0,"unit":0}
insetLeftDimension{"value":0,"unit":2}
insetTopDimension{"value":0,"unit":2}
insetRightDimension{"value":0,"unit":2}
insetBottomDimension{"value":0,"unit":2}

UIScroll

Scrollable content inside a clipped viewport, with momentum and scrollbars.

Explained in ui/overview.

FieldTypeDefaultNotes
enabledbooleantrue
contentEntitynoneThe child that scrolls inside this node. Leave empty to use the first child.
horizontalbooleanfalse
verticalbooleantrue
movementenumClampedClamped stops at the ends; Elastic overshoots and springs back. One of Clamped, Elastic.
wheelSpeednumber1 Range ≥ 0.
dragScrollbooleantrue
decelerationRatenumber0.135Fraction of flick velocity kept per second. 0 stops on release. Range 0–1.

UISlider

A draggable value along a range, with an optional step.

Explained in ui/widgets.

FieldTypeDefaultNotes
minnumber0
maxnumber1
stepnumber0
valuenumber0
fillEntitynone
handleEntitynone

UITabView

Connects an ordered ToggleGroup to content pages, with keyboard navigation.

Explained in ui/widgets.

FieldTypeDefaultNotes
selectedIndexnumber0 Range ≥ -1, step 1.
tabsEntity
pagesEntity
labelsarrayempty
allowSwitchOffbooleanfalse
verticalbooleanfalse
loopNavigationbooleantrue
selectOnFocusbooleantrue

UIToggle

A two-state widget — checkbox or switch — and its group membership.

Explained in ui/widgets.

FieldTypeDefaultNotes
isOnbooleanfalse
checkEntitynone

UIToggleGroup

Makes the toggles beneath it exclusive — a radio group or tab bar. Put it on their common ancestor.

Explained in ui/widgets.

FieldTypeDefaultNotes
allowSwitchOffbooleanfalseLet a click turn the selected toggle off, leaving none selected.

UITooltip

A themed engine tooltip with hover, focus, long press and screen-edge placement.

Explained in ui/widgets.

FieldTypeDefaultNotes
contentstring"Tooltip"
stylePrefabAsset<prefab>none
hoverbooleantrue
focusbooleantrue
longPressbooleantrue
hoverDelaynumber0.5 Range ≥ 0.
longPressDelaynumber0.6 Range ≥ 0.
sideenumBottom One of Bottom, Top, Left, Right.
gapnumber8 Range ≥ 0.
avoidEdgesbooleantrue
maxWidthnumber240 Range ≥ 24.

UITreeView

Adapts project hierarchy data to a virtualized tree with stable IDs and host-owned drop requests.

Explained in ui/widgets.

FieldTypeDefaultNotes
nodesarrayempty
expandedIdsarrayempty
selectedIdsarrayempty
selectionModeenumSingle One of None, Single, Multiple.
rowHeightnumber32 Range ≥ 12, step 1.
indentnumber20 Range ≥ 0, step 1.
dragEnabledbooleanfalse
rowPrefabAsset<prefab>none
emptyPrefabAsset<prefab>none

UIVisual

What a UI node actually paints — a colour, a texture, or a nine-sliced sprite.

Explained in ui/overview.

FieldTypeDefaultNotes
visualTypeenumNone One of None, SolidColor, Image, NineSlice, Tiled, Filled.
textureAsset<texture>none
colorColor#ffffff
fitenumFillHow the image fits its box: Fill stretches, Contain letterboxes it whole, Cover fills and crops. One of Fill, Contain, Cover.
uvOffsetVec2(0, 0)
uvScaleVec2(1, 1)
sliceBorderVec4(0, 0, 0, 0)
tileSizeVec2(32, 32)
fillMethodenumHorizontal One of Horizontal, Vertical, Radial360, Radial90, Radial180.
fillOriginenumLeft One of Left, Right, Bottom, Top.
fillAmountnumber1
materialAsset<material>none
enabledbooleantrue

UIWorldAnchor

Stands a UI node over a point in the 3D world — an objective marker, a name over a head — and keeps it on the screen's edge when the point is out of view.

Explained in ui/overview.

FieldTypeDefaultNotes
targetEntitynoneThe entity to stand over. Empty: stand over the world point Offset.
offsetVec3(0, 0, 0)Added to the target's position (world units): above a head, at a door. The point itself with no target.
cameraEntitynoneThe camera that looks. Empty: the camera on screen.
clampToEdgesbooleanfalseOff screen, stand at the edge in its direction instead of leaving it.
edgeMarginnumber24 Range ≥ 0.
edgeInsetsPadding{"left":0,"top":0,"right":0,"bottom":0}More room kept clear on each side, over Edge Margin: where the HUD keeps its own panels, so a clamped marker stays off them.
hideWhenBehindbooleantrue
onScreenbooleanfalse Read-only — the engine computes it.
behindbooleanfalse Read-only — the engine computes it.
clampedbooleanfalse Read-only — the engine computes it.
distancenumber0 Read-only — the engine computes it.

VirtualButton

A held virtual InputMap action with independent pointer ownership and normal button appearance.

Explained in ui/widgets.

FieldTypeDefaultNotes
inputIdstring"fire"
valuenumber1

VirtualJoystick

An independently captured fixed or follow joystick, feeding a named virtual InputMap axis.

Explained in ui/widgets.

FieldTypeDefaultNotes
inputIdstring"move"
modeenumFixed One of Fixed, Follow.
radiusnumber50 Range ≥ 1.
deadZonenumber0.15 Range 0–0.99.
returnSpeednumber18 Range ≥ 0.
baseEntitynone
handleEntitynone