packagedAppOptions
packagedAppOptions(
config):object
Defined in: runtime/packagedRuntime.ts:142
The app options a packaged config declares — everything an App must be built WITH (shaders compile against the colour space; the layer masks are renderer state set before the first frame).
Every host projected these by hand and each list was a chance to miss one: the web host was still building its App without the 2.5D depth mask after the export had started shipping it, so a shipped game could carry the setting and ignore it. One projection, so a field added to the config reaches every realm that spreads it.
Parameters
Section titled “Parameters”config
Section titled “config”Pick<PackagedGameConfig, "ySortLayers" | "depthLayers" | "colorSpace" | "screenFit">
Returns
Section titled “Returns”colorSpace?
Section titled “colorSpace?”
optionalcolorSpace?:"linear"|"gamma"
depthLayers?
Section titled “depthLayers?”
optionaldepthLayers?:number
renderBackend?
Section titled “renderBackend?”
optionalrenderBackend?:"webgl2"|"webgpu"
GPU backend the build asks for; absent ⇒ WebGL2. A request for ‘webgpu’ falls back where the machine cannot serve one.
screenFit?
Section titled “screenFit?”
optionalscreenFit?:object
screenFit.designHeight
Section titled “screenFit.designHeight”designHeight:
number
screenFit.designWidth
Section titled “screenFit.designWidth”designWidth:
number
screenFit.matchWidthOrHeight
Section titled “screenFit.matchWidthOrHeight”matchWidthOrHeight:
number
screenFit.scaleMode
Section titled “screenFit.scaleMode”scaleMode:
number
ySortLayers?
Section titled “ySortLayers?”
optionalySortLayers?:number