packagedRuntimeInit
packagedRuntimeInit(
config):object
Defined in: runtime/packagedRuntime.ts:226
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" | "audioConfig" | "uiTheme" | "uiThemeColors" | "achievements" | "steamAppId" | "screenFit" | "aot" | "debugChannel">
Returns
Section titled “Returns”object
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
physicsConfig?
Section titled “physicsConfig?”
optionalphysicsConfig?:Physics2DPluginConfig
physicsEnabled?
Section titled “physicsEnabled?”
optionalphysicsEnabled?:boolean
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