OasisWManual 한국어
Section 8. UI and sound Reference

Element properties

This page lists the fields of the ELEMENT and BUTTON components. Field names and defaults were read on 2026-10-29 in the oasisw.ai editor (version shown as OasisW 7e2aa65) by creating a new Text Element and Button. The structure is in How on-screen text and buttons are structured.

Fields on every Element

FieldDefaultMeaning
TypeText or ImageText, Image, Group. The fields below change with the type
PresetCenter Anchor & PivotAnchor/Pivot presets. 9 directions (Top Left to Bottom Right), Stretch, Custom
Anchor0.5, 0.5, 0.5, 0.5Range of the parent area to attach to (left, bottom, right, top ratios)
Pivot0.5, 0.5Its own reference point
Width / HeightImage 100 / 100Size (reference-resolution pixels). For Text, Auto Width and Auto Height are on, so the size follows the text
Margin-16, -16, -16, -16Distance inward/outward from the Anchor range
Color / OpacityWhite / 1Color and opacity
Use InputOff for Text, on for ButtonWhether it receives presses and hover
Batch Group, LayersNone, UIBatching group and layers

Text type

FieldDefaultMeaning
Auto Width / Auto HeightOn / OnSizes the element to fit the text
Auto Fit Width / Auto Fit HeightOff / OffShrinks the font size so the text fits in the set size. Turn off Auto Width, set Width, then turn this on. In our tests, with Width 60 and the text Score 0 점수, turning it on reduced Font Size from 32 to 21. The shrink range was min 8 to max 32
Alignment0.5, 0.5Horizontal and vertical alignment of the text within the box
FontEmptyFont asset. If empty, nothing is drawn (Change score and message text)
LocalizedOffWhen on, uses a translation key instead of the text
TextTextText shown on screen
Enable MarkupOffWhen on, interprets formatting tags in the text. In our tests, [color="#ff3030"]점수[/color] 10 drew only 점수 (Score) in red
Font Size / Line Height32 / 32Font size and line height
Wrap Lines / Max LinesOn / emptyLine wrapping and maximum number of lines
Spacing1Letter spacing multiplier
Outline Color / Outline ThicknessBlack / 0Text outline
Shadow Color / Shadow OffsetBlack / 0, 0Text shadow

Image type

FieldDefaultMeaning
Rect0, 0, 1, 1Area of the texture to use (U, V, width, height ratios)
MaskOffClips child Elements to the shape of this image
Texture / Sprite / MaterialEmptyImage to draw. If empty, it becomes a rectangle filled with Color

BUTTON

FieldDefaultMeaning
ActiveOnWhether it receives presses. When off, it switches to Inactive Tint
ImageIts own entity (Button)Image Element whose color changes
Hit Padding0, 0, 0, 0Expands or shrinks the area that receives presses
Transition ModeTintWhether to change the color or the image (Sprite) when the state changes
Hover Tint / Pressed Tint / Inactive TintShades of whiteColor on hover, on press and when inactive
Fade Duration0Time the color change takes (milliseconds)

Next steps

Source ui-sound/element-reference.html