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

Method start

packages/editor-app/src/services/EngineService.ts:483–493  ·  view source on GitHub ↗

* Start the game loop (preview mode).

()

Source from the content-addressed store, hash-verified

481 * Start the game loop (preview mode).
482 */
483 start(): void {
484 if (!this._initialized || !this._runtime || this._running) {
485 return;
486 }
487
488 this._running = true;
489 this._runtime.start();
490
491 // 启动自动播放动画
492 this._startAutoPlayAnimations();
493 }
494
495 /**
496 * Stop the game loop.

Callers 2

handlePlayFunction · 0.45
useEngineFunction · 0.45

Calls 1

Tested by

no test coverage detected