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

Method currentScene

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

* 获取当前活跃的场景 * * @returns 当前场景实例,如果没有场景则返回null

()

Source from the content-addressed store, hash-verified

213 * @returns 当前场景实例,如果没有场景则返回null
214 */
215 public get currentScene(): IScene | null {
216 return this._defaultWorld.getScene(SceneManager.DEFAULT_SCENE_ID);
217 }
218
219 /**
220 * 获取ECS流式API

Callers

nothing calls this directly

Calls 1

getSceneMethod · 0.65

Tested by

no test coverage detected