UIVisualData
Defined in: ui/core/ui-visual.ts:35
The fields of the UIVisual component, whose tier this shape carries.
Properties
Section titled “Properties”color:
Color
Defined in: ui/core/ui-visual.ts:38
enabled
Section titled “enabled”enabled:
boolean
Defined in: ui/core/ui-visual.ts:58
fillAmount
Section titled “fillAmount”fillAmount:
number
Defined in: ui/core/ui-visual.ts:56
Filled: visible fraction [0,1].
fillMethod
Section titled “fillMethod”fillMethod:
FillMethod
Defined in: ui/core/ui-visual.ts:52
Filled: axis to crop along.
fillOrigin
Section titled “fillOrigin”fillOrigin:
FillOrigin
Defined in: ui/core/ui-visual.ts:54
Filled: edge the fill grows from.
fit:
UIVisualFit
Defined in: ui/core/ui-visual.ts:42
CSS object-fit: Fill stretches to the box (default), Contain
letterboxes the whole image inside it, Cover fills the box and crops.
Ignored by NineSlice and Tiled, which exist to adapt to the box.
material
Section titled “material”material:
number
Defined in: ui/core/ui-visual.ts:57
sliceBorder
Section titled “sliceBorder”sliceBorder:
Vec4
Defined in: ui/core/ui-visual.ts:48
NineSlice border (texture metadata wins when present).
texture
Section titled “texture”texture:
number
Defined in: ui/core/ui-visual.ts:37
tileSize
Section titled “tileSize”tileSize:
Vec2
Defined in: ui/core/ui-visual.ts:50
Tiled: texture repeats every tileSize px of the box.
uvOffset
Section titled “uvOffset”uvOffset:
Vec2
Defined in: ui/core/ui-visual.ts:44
Base UV sub-region offset (identity = whole texture).
uvScale
Section titled “uvScale”uvScale:
Vec2
Defined in: ui/core/ui-visual.ts:46
Base UV sub-region scale (identity = whole texture).
visualType
Section titled “visualType”visualType:
UIVisualType
Defined in: ui/core/ui-visual.ts:36