跳转到内容

PageDef

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

Defined in: sdk/src/ui/pages/ui-pages.ts:33

optional mount?: number | (() => number)

Defined in: sdk/src/ui/pages/ui-pages.ts:37

An entity of the scene to build the page’s contents under (see the file comment). One of mount and parent is needed.


optional onClose?: "destroy" | "keep"

Defined in: sdk/src/ui/pages/ui-pages.ts:46

What closing does. keep (the default): the page stays built and is switched off, so opening it again costs nothing. destroy: its contents are removed and the next open builds them again.


optional overrides?: PrefabOverride[]

Defined in: sdk/src/ui/pages/ui-pages.ts:41

Overrides applied to the prefab as it is built, as a scene’s prefab instance carries them.


optional parent?: number | (() => number)

Defined in: sdk/src/ui/pages/ui-pages.ts:39

An entity to add the page’s root under, last among its children.


prefab: string

Defined in: sdk/src/ui/pages/ui-pages.ts:35

The prefab the page is made from: a path or @uuid: reference, whatever the asset system loads a prefab by.