Interface: CreatePanelDefaultedOptions
Defined in: ui/utilities/create-panel.ts:33
Fields of CreatePanelOptions with a sensible default; callers may omit these.
Properties
anchor
anchor:
UiAnchorConfig
Defined in: ui/utilities/create-panel.ts:40
The anchor to place the panel with - see UiAnchor for common
presets (e.g. UiAnchor.center({ x: 200, y: 60 })), each of which
bakes in the literal size/margin its own axes actually take. Defaults
to UiAnchor.center().
anchoredPosition?
optionalanchoredPosition?:Vector2
Defined in: ui/utilities/create-panel.ts:43
Offset of the panel's pivot from its anchor reference point, in reference pixels.
slices?
optionalslices?:NineSliceOptions
Defined in: ui/utilities/create-panel.ts:49
Overrides sprite.slices for this panel, for reusing one base sprite
with different nine-slice configuration across panels.