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

Method setEditorMode

packages/runtime-core/src/GameRuntime.ts:792–796  ·  view source on GitHub ↗

* 设置编辑器模式 * Set editor mode * * When false (runtime mode), editor-only UI like grid, gizmos, * and axis indicator are automatically hidden. * 当为 false(运行时模式)时,编辑器专用 UI 会自动隐藏。

(isEditor: boolean)

Source from the content-addressed store, hash-verified

790 * 当为 false(运行时模式)时,编辑器专用 UI 会自动隐藏。
791 */
792 setEditorMode(isEditor: boolean): void {
793 if (this._bridge) {
794 this._bridge.setEditorMode(isEditor);
795 }
796 }
797
798 /**
799 * 获取编辑器模式

Callers 2

initializeMethod · 0.45
setModeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected