PackagedGameConfig
此内容尚不支持你的语言。
Defined in: runtime/packagedRuntime.ts:38
game.config.json — what an export bakes about the project, and the contract
between the export pipeline that writes it and every runtime that reads it.
One declaration so the two sides cannot drift.
Properties
Section titled “Properties”achievements?
Section titled “achievements?”
optionalachievements?:string[]
Defined in: runtime/packagedRuntime.ts:79
The achievement ids this game declares. The runtime refuses an unlock outside the set, because a store accepts an unknown id and does nothing.
optionalaot?:object
Defined in: runtime/packagedRuntime.ts:114
The compiled twins this build produced (docs/REARCH_AOT.md). wasm is
package-relative; the manifest rides here so there is not a second file to
keep in step. Absent unless the project marked something @compiled, so a
runtime reads presence and needs no mode flag.
manifest
Section titled “manifest”manifest:
AotManifest
module
Section titled “module”module:
string
audioConfig?
Section titled “audioConfig?”
optionalaudioConfig?:AudioProjectConfig
Defined in: runtime/packagedRuntime.ts:94
Project mixer state: bus volumes, custom buses, effects, duck rules. Absent ⇒ the default mix.
colorSpace?
Section titled “colorSpace?”
optionalcolorSpace?:"linear"|"gamma"
Defined in: runtime/packagedRuntime.ts:61
Project color space — ‘linear’ boots the linear-light pipeline.
depthLayers?
Section titled “depthLayers?”
optionaldepthLayers?:number
Defined in: runtime/packagedRuntime.ts:59
Bitmask of render layers (0..31) that resolve by real depth (2.5D).
entryScene
Section titled “entryScene”entryScene:
string
Defined in: runtime/packagedRuntime.ts:40
Project-relative path of the scene the game boots into.
hotUpdate?
Section titled “hotUpdate?”
optionalhotUpdate?:object
Defined in: runtime/packagedRuntime.ts:97
Hot-update delivery: the CDN root remote-group assets resolve against +
the storage key an applied update persists under (both optional).
persistUpdateKey?
Section titled “persistUpdateKey?”
optionalpersistUpdateKey?:string
remoteRoot?
Section titled “remoteRoot?”
optionalremoteRoot?:string
msaaSamples?
Section titled “msaaSamples?”
optionalmsaaSamples?:number
Defined in: runtime/packagedRuntime.ts:66
Scene-target multisampling the project asked for; absent ⇒ 4. Clamped by the device, which answers capability and never policy.
outputTransform?
Section titled “outputTransform?”
optionaloutputTransform?:"none"|"aces"
Defined in: runtime/packagedRuntime.ts:63
The curve the frame applies on the way to the display; absent = none.
physicsConfig?
Section titled “physicsConfig?”
optionalphysicsConfig?:Physics2DPluginConfig
Defined in: runtime/packagedRuntime.ts:91
The physics world the project declared: gravity, solver, collision matrix. Absent ⇒ the engine’s own defaults.
physicsEnabled?
Section titled “physicsEnabled?”
optionalphysicsEnabled?:boolean
Defined in: runtime/packagedRuntime.ts:88
Install physics even when the shipped scene shows no bodies — a project that spawns them from script (Project Settings → Physics → Enabled). Absent ⇒ physics installs only when a scene actually uses it.
renderBackend?
Section titled “renderBackend?”
optionalrenderBackend?:"webgl2"|"webgpu"
Defined in: runtime/packagedRuntime.ts:69
GPU backend the build asks for; absent ⇒ WebGL2. A request for ‘webgpu’ falls back where the machine cannot serve one.
scenes?
Section titled “scenes?”
optionalscenes?:object[]
Defined in: runtime/packagedRuntime.ts:42
Every switchable scene (SceneManager name + cooked path); includes the entry.
name:
string
path:
string
screenFit?
Section titled “screenFit?”
optionalscreenFit?:object
Defined in: runtime/packagedRuntime.ts:72
Project camera fit (design resolution + scale mode) — letterboxes the main camera without a UI Canvas; absent = no fit.
designHeight
Section titled “designHeight”designHeight:
number
designWidth
Section titled “designWidth”designWidth:
number
matchWidthOrHeight
Section titled “matchWidthOrHeight”matchWidthOrHeight:
number
scaleMode
Section titled “scaleMode”scaleMode:
number
scripts?
Section titled “scripts?”
optionalscripts?:string
Defined in: runtime/packagedRuntime.ts:55
The project’s own bundled code, as a payload-relative file name. Absent means this build has none — which is how a host tells “no project script” from “the project script failed to load”. Guessing between those with a catch runs the empty world and calls it a success.
sideModules?
Section titled “sideModules?”
optionalsideModules?:object[]
Defined in: runtime/packagedRuntime.ts:107
Optional native modules this project supplied itself, staged beside the
engine’s own (see .esengine/modules/<id>/).
The declaration ships rather than being discovered, because discovery is not possible where it matters: a mini-game cannot list a directory and a playable has no directory at all. The export knows what it staged, so it says so, and every transport resolves these ids exactly like a built-in.
file:
string
globalName?
Section titled “globalName?”
optionalglobalName?:string
id:
string
steamAppId?
Section titled “steamAppId?”
optionalsteamAppId?:number
Defined in: runtime/packagedRuntime.ts:82
The Steam application id, when this build ships to Steam. Its presence is what makes the runtime try to bring a Steam client up at all.
uiTheme?
Section titled “uiTheme?”
optionaluiTheme?:"light"
Defined in: runtime/packagedRuntime.ts:74
Project widget theme; absent = dark.
uiThemeColors?
Section titled “uiThemeColors?”
optionaluiThemeColors?:Record<string,string>
Defined in: runtime/packagedRuntime.ts:76
Project theme color overrides (role → #rrggbbaa hex).
worlds?
Section titled “worlds?”
optionalworlds?:object[]
Defined in: runtime/packagedRuntime.ts:48
Scenes the cook cut into cells, each with the manifest describing them.
Deliberately not in scenes: a cell is content residency brings in, not a
place a game switches to.
manifest
Section titled “manifest”manifest:
string
scene:
string
ySortLayers?
Section titled “ySortLayers?”
optionalySortLayers?:number
Defined in: runtime/packagedRuntime.ts:57
Bitmask of render layers (0..31) that y-sort within the layer.