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.
Parameters
Section titled “Parameters”config
Section titled “config”Pick<PackagedGameConfig, "physicsEnabled" | "physicsConfig" | "physics3dBackend" | "physics3dWorld" | "audioConfig" | "uiTheme" | "uiThemeColors" | "achievements" | "steamAppId" | "screenFit" | "aot" | "debugChannel" | "runtime">
Returns
Section titled “Returns”achievements?
Section titled “achievements?”
optionalachievements?:string[]
optionalaot?:object
aot.manifest
Section titled “aot.manifest”manifest:
AotManifest
aot.module
Section titled “aot.module”module:
string
audioConfig?
Section titled “audioConfig?”
optionalaudioConfig?:AudioProjectConfig
debugChannel?
Section titled “debugChannel?”
optionaldebugChannel?:DebugChannelConfig
physics3dBackend?
Section titled “physics3dBackend?”
optionalphysics3dBackend?:Physics3DBackend
physics3dWorld?
Section titled “physics3dWorld?”
optionalphysics3dWorld?:Partial<Physics3DWorldConfig>
The project’s 3D world: scene units per metre and gravity (Project Settings → Physics → 3D). Absent ⇒ centimetre units, Earth gravity.
physicsConfig?
Section titled “physicsConfig?”
optionalphysicsConfig?:Physics2DPluginConfig
physicsEnabled?
Section titled “physicsEnabled?”
optionalphysicsEnabled?:boolean
runtime?
Section titled “runtime?”
optionalruntime?:RuntimeBuildConfig
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
steamAppId?
Section titled “steamAppId?”
optionalsteamAppId?:number
uiTheme?
Section titled “uiTheme?”
optionaluiTheme?:"light"
uiThemeOverrides?
Section titled “uiThemeOverrides?”
optionaluiThemeOverrides?:ThemeOverrides