mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-21 16:12:40 +08:00
ban runninng engine main loop in editor (#7098)
* ban runninng engine main loop in editor * update
This commit is contained in:
@@ -790,6 +790,9 @@ export class Game extends EventTarget {
|
||||
}
|
||||
// Run game.
|
||||
private _runMainLoop () {
|
||||
if (EDITOR && !legacyCC.GAME_VIEW) {
|
||||
return;
|
||||
}
|
||||
let callback: FrameRequestCallback;
|
||||
const config = this.config;
|
||||
const director = legacyCC.director;
|
||||
|
||||
Reference in New Issue
Block a user