mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-07 03:52:41 +08:00
Avoid a flash of last scene after loading a new scene
This commit is contained in:
@@ -540,6 +540,7 @@ cc.Director = Class.extend(/** @lends cc.Director# */{
|
||||
if (onLaunched) {
|
||||
onLaunched(null, scene);
|
||||
}
|
||||
cc.renderer.clear();
|
||||
this.emit(cc.Director.EVENT_AFTER_SCENE_LAUNCH, scene);
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user