packagedRuntimeInit
此内容尚不支持你的语言。
packagedRuntimeInit(
config):object
Defined in: runtime/packagedRuntime.ts:166
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">
Returns
Section titled “Returns”object
achievements?
Section titled “achievements?”
optionalachievements?:string[]
audioConfig?
Section titled “audioConfig?”
optionalaudioConfig?:AudioProjectConfig
physicsConfig?
Section titled “physicsConfig?”
optionalphysicsConfig?:PhysicsPluginConfig
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