跳转到内容

UIVisualData

此内容尚不支持你的语言。

Defined in: ui/core/ui-visual.ts:32

core-ui.ts

The stable UI surface promoted into the top-level esengine namespace (text, UINode box visuals, interaction, layout, theme).

This is the curated public UI API. The complete UI module surface — which also includes low-level text/atlas internals and engine-internal composition glue (e.g. EntityStateMap, ensureComponent) — lives in ./ui and is imported module-directly by the SDK code that needs it. Those internals are intentionally NOT re-exported here, so the public esengine namespace stays a stable, intentional surface.

Re-exported wholesale by core.ts.

color: Color

Defined in: ui/core/ui-visual.ts:35


enabled: boolean

Defined in: ui/core/ui-visual.ts:51


fillAmount: number

Defined in: ui/core/ui-visual.ts:49

Filled: visible fraction [0,1].


fillMethod: FillMethod

Defined in: ui/core/ui-visual.ts:45

Filled: axis to crop along.


fillOrigin: FillOrigin

Defined in: ui/core/ui-visual.ts:47

Filled: edge the fill grows from.


material: number

Defined in: ui/core/ui-visual.ts:50


sliceBorder: Vec4

Defined in: ui/core/ui-visual.ts:41

NineSlice border (texture metadata wins when present).


texture: number

Defined in: ui/core/ui-visual.ts:34


tileSize: Vec2

Defined in: ui/core/ui-visual.ts:43

Tiled: texture repeats every tileSize px of the box.


uvOffset: Vec2

Defined in: ui/core/ui-visual.ts:37

Base UV sub-region offset (identity = whole texture).


uvScale: Vec2

Defined in: ui/core/ui-visual.ts:39

Base UV sub-region scale (identity = whole texture).


visualType: UIVisualType

Defined in: ui/core/ui-visual.ts:33