Skip to main content

Interface: CreatePanelRequiredOptions

Defined in: ui/utilities/create-panel.ts:19

Fields of CreatePanelOptions with no sensible default; callers must always provide these.

Properties​

sprite​

sprite: SpriteEcsComponent

Defined in: ui/utilities/create-panel.ts:26

The sprite to draw the panel with, e.g. from createImageSprite. Cloned rather than attached directly, so the same sprite can be passed to multiple createPanel calls without one panel's layout-driven width/height/pivot mutations affecting another's.