mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-21 16:12:40 +08:00
widget refreshScene after scene loaded (#7100)
This commit is contained in:
@@ -598,7 +598,7 @@ export class Director extends EventTarget {
|
||||
scene._load();
|
||||
|
||||
// Delay run / replace scene to the end of the frame
|
||||
this.once(legacyCC.Director.EVENT_AFTER_UPDATE, () => {
|
||||
this.once(legacyCC.Director.EVENT_AFTER_DRAW, () => {
|
||||
this.runSceneImmediate(scene, onBeforeLoadScene, onLaunched);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user