跳转到内容

LoadRuntimeSceneOptions

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

Defined in: runtime/runtimeLoader.ts:191

app: App

Defined in: runtime/runtimeLoader.ts:197


optional externalEntities?: ReadonlyMap<number, number>

Defined in: runtime/runtimeLoader.ts:194

Authored ids this scene may reference in ANOTHER document — the persistent rows a streamed cell names. See SceneLoadOptions.externalEntities.


module: ESEngineModule | null

Defined in: runtime/runtimeLoader.ts:200

The wasm module, or null on a native host — the engine core is arm64 there, so there is no Module to reach through.


optional onPhase?: (phase, ms) => void

Defined in: runtime/runtimeLoader.ts:196

Where this load spent its time. See SceneLoadOptions.onPhase.

string

number

void


optional physics3dModule?: Physics3DWasmModule

Defined in: runtime/runtimeLoader.ts:214

An already-resolved 3D physics module, for tests and headless hosts.


optional physicsConfig?: Physics2DPluginConfig

Defined in: runtime/runtimeLoader.ts:208

Project-declared physics world config (gravity, solver tuning, collision-layer masks, sleep/continuous toggles) — threaded from the editor’s Project Settings.


optional physicsEnabled?: boolean

Defined in: runtime/runtimeLoader.ts:212

Project-declared physics enable (.uproject features analog) — installs physics even for runtime-spawned bodies the static scene doesn’t show. OR-combined with a content scan.


optional physicsModule?: PhysicsWasmModule | null

Defined in: runtime/runtimeLoader.ts:205


sceneData: SceneData

Defined in: runtime/runtimeLoader.ts:201


optional sceneName?: string

Defined in: runtime/runtimeLoader.ts:222


source: RuntimeAssetSource

Defined in: runtime/runtimeLoader.ts:202


optional spineManager?: SpineManager | null

Defined in: runtime/runtimeLoader.ts:204


optional spineModule?: SpineWasmModule | null

Defined in: runtime/runtimeLoader.ts:203


optional uiTheme?: "dark" | "light"

Defined in: runtime/runtimeLoader.ts:218

Project-declared UI theme (Project Settings → UI). Dark is the default; ‘light’ switches the token set AND re-resolves already-instantiated ThemeStyle-tagged widgets (prefab instances carry dark baked values).


optional uiThemeOverrides?: ThemeOverrides

Defined in: runtime/runtimeLoader.ts:221

Project-declared partial re-skin over the base theme (Project Settings → UI theme colors); merged via resolveThemeTokens.