main_scene
In the Web App Manifest of a WebSpatial App, this new field can be used to configure the initialization properties of the Start Scene.
Temporary prefixed manifest key
Because this is a new property added by WebSpatial API to the Web App Manifest standard, it needs the xr_ prefix before standardization is complete, so main_scene must be written as xr_main_scene.
The following initialization properties are supported:
Schema
{
type?: "volume" | "window"
default_size?: {
width?: number | string
height?: number | string
depth?: number | string
}
resizability?: {
min_width?: number | string
max_width?: number | string
min_height?: number | string
max_height?: number | string
}
world_scaling?: "automatic" | "dynamic"
world_alignment?: "automatic" | "gravityAligned"
baseplate_visibility?: "automatic" | "hidden"
}
Example:
{
"name": "example app",
"start_url": "/",
"xr_main_scene": {
"type": "volume",
"default_size": {
"width": 100,
"height": 100,
"depth": "1m"
},
"resizability": {
"min_width": 50,
"max_width": 500,
"min_height": 50,
"max_height": 500
},
"world_scaling": "dynamic",
"world_alignment": "gravityAligned",
"baseplate_visibility": "hidden"
}
}