MCPcopy Create free account
hub / github.com/esengine/esengine / hasScene

Method hasScene

packages/core/src/ECS/SceneManager.ts:289–291  ·  view source on GitHub ↗

* 检查是否有活跃场景 * * @returns 如果有活跃场景返回true,否则返回false

()

Source from the content-addressed store, hash-verified

287 * @returns 如果有活跃场景返回true,否则返回false
288 */
289 public get hasScene(): boolean {
290 return this._defaultWorld.getScene(SceneManager.DEFAULT_SCENE_ID) !== null;
291 }
292
293 /**
294 * 检查是否有待切换的场景

Callers

nothing calls this directly

Calls 1

getSceneMethod · 0.65

Tested by

no test coverage detected