PageDef
此内容尚不支持你的语言。
Defined in: sdk/src/ui/pages/ui-pages.ts:33
Properties
Section titled “Properties”mount?
Section titled “mount?”
optionalmount?: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.
onClose?
Section titled “onClose?”
optionalonClose?:"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.
overrides?
Section titled “overrides?”
optionaloverrides?: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.
parent?
Section titled “parent?”
optionalparent?: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
Section titled “prefab”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.