Skip to content

packagedRuntimeInit

packagedRuntimeInit(config): object

Defined in: sdk/src/runtime/packagedRuntime.ts:257

The initRuntime arguments a packaged config declares — everything applied to a LIVE app rather than baked into its construction. The twin of packagedAppOptions; between them a host names the config once.

Pick<PackagedGameConfig, "physicsEnabled" | "physicsConfig" | "physics3dBackend" | "physics3dWorld" | "audioConfig" | "uiTheme" | "uiThemeColors" | "achievements" | "steamAppId" | "screenFit" | "aot" | "debugChannel" | "runtime">

optional achievements?: string[]

optional aot?: object

manifest: AotManifest

module: string

optional audioConfig?: AudioProjectConfig

optional debugChannel?: DebugChannelConfig

optional physics3dBackend?: Physics3DBackend

optional physics3dWorld?: Partial<Physics3DWorldConfig>

The project’s 3D world: scene units per metre and gravity (Project Settings → Physics → 3D). Absent ⇒ centimetre units, Earth gravity.

optional physicsConfig?: Physics2DPluginConfig

optional physicsEnabled?: boolean

optional runtime?: RuntimeBuildConfig

optional screenFit?: object

designHeight: number

designWidth: number

matchWidthOrHeight: number

scaleMode: number

optional steamAppId?: number

optional uiTheme?: "light"

optional uiThemeOverrides?: ThemeOverrides