From bec0b86ee2d5ab4f297fb87ca2e6520d09f50b2c Mon Sep 17 00:00:00 2001 From: GengineJS <476393671@qq.com> Date: Mon, 14 Sep 2020 17:58:27 +0800 Subject: [PATCH] [Feature] TweenSystem class adds GameView mode (#7374) --- cocos/tween/tween-system.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cocos/tween/tween-system.ts b/cocos/tween/tween-system.ts index 5c30b8f3cc..6301333100 100644 --- a/cocos/tween/tween-system.ts +++ b/cocos/tween/tween-system.ts @@ -5,6 +5,7 @@ import { System, Director, director } from "../core"; import { ActionManager } from "./actions/action-manager"; import { EDITOR } from 'internal:constants'; +import { legacyCC } from "../core/global-exports"; /** * @en @@ -50,7 +51,7 @@ export class TweenSystem extends System { * @param dt 间隔时间 */ postUpdate (dt: number) { - if (!EDITOR || this._executeInEditMode) { + if (!EDITOR || legacyCC.GAME_VIEW || this._executeInEditMode) { this.actionMgr.update(dt); } }