mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-06 03:22:39 +08:00
Fix director.root not initialized in splash image (#6006)
This commit is contained in:
+4
-5
@@ -581,7 +581,6 @@ export class Game extends EventTarget {
|
||||
if (cb) { cb(); }
|
||||
};
|
||||
|
||||
|
||||
// Init engine
|
||||
this._initEngine(start);
|
||||
}
|
||||
@@ -595,6 +594,10 @@ export class Game extends EventTarget {
|
||||
this._initEvents();
|
||||
}
|
||||
|
||||
// Log engine version
|
||||
console.log('Cocos Creator 3D v' + cc.ENGINE_VERSION);
|
||||
this.emit(Game.EVENT_ENGINE_INITED);
|
||||
|
||||
// load renderpipeline
|
||||
let config = this.config;
|
||||
cc.loader.load({ uuid: config.renderPipeline }, (err, asset) => {
|
||||
@@ -620,10 +623,6 @@ export class Game extends EventTarget {
|
||||
cb && cb();
|
||||
}
|
||||
});
|
||||
|
||||
// Log engine version
|
||||
console.log('Cocos Creator 3D v' + cc.ENGINE_VERSION);
|
||||
this.emit(Game.EVENT_ENGINE_INITED);
|
||||
}
|
||||
|
||||
// @Methods
|
||||
|
||||
Reference in New Issue
Block a user