跳转到内容

PackagedGameConfig

此内容尚不支持你的语言。

Defined in: packagedRuntime.ts:31

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.

optional colorSpace?: "linear" | "gamma"

Defined in: packagedRuntime.ts:39

Project color space — ‘linear’ boots the linear-light pipeline.


entryScene: string

Defined in: packagedRuntime.ts:33

Project-relative path of the scene the game boots into.


optional hotUpdate?: object

Defined in: packagedRuntime.ts:49

Hot-update delivery: the CDN root remote-group assets resolve against + the storage key an applied update persists under (both optional).

optional persistUpdateKey?: string

optional remoteRoot?: string


optional scenes?: object[]

Defined in: packagedRuntime.ts:35

Every switchable scene (SceneManager name + cooked path); includes the entry.

name: string

path: string


optional screenFit?: object

Defined in: packagedRuntime.ts:42

Project camera fit (design resolution + scale mode) — letterboxes the main camera without a UI Canvas; absent = no fit.

designHeight: number

designWidth: number

matchWidthOrHeight: number

scaleMode: number


optional uiTheme?: "light"

Defined in: packagedRuntime.ts:44

Project widget theme; absent = dark.


optional uiThemeColors?: Record<string, string>

Defined in: packagedRuntime.ts:46

Project theme color overrides (role → #rrggbbaa hex).


optional ySortLayers?: number

Defined in: packagedRuntime.ts:37

Bitmask of render layers (0..31) that y-sort within the layer.