跳转到内容

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.

Pick<PackagedGameConfig, "ySortLayers" | "depthLayers" | "colorSpace" | "screenFit">

optional colorSpace?: "linear" | "gamma"

optional depthLayers?: number

optional renderBackend?: "webgl2" | "webgpu"

GPU backend the build asks for; absent ⇒ WebGL2. A request for ‘webgpu’ falls back where the machine cannot serve one.

optional screenFit?: object

designHeight: number

designWidth: number

matchWidthOrHeight: number

scaleMode: number

optional ySortLayers?: number