diff --git a/packages/loader/src/resource-deserialize/resources/scene/SceneParser.ts b/packages/loader/src/resource-deserialize/resources/scene/SceneParser.ts index bda667e7d4..75296c45c8 100644 --- a/packages/loader/src/resource-deserialize/resources/scene/SceneParser.ts +++ b/packages/loader/src/resource-deserialize/resources/scene/SceneParser.ts @@ -82,7 +82,7 @@ export class SceneParser { } } - private _parseComponents() { + private _parseComponents(): Promise { const entitiesConfig = this.context.originalData.entities; const entityMap = this.context.entityMap; @@ -103,6 +103,7 @@ export class SceneParser { promises.push(promise); } } + return Promise.all(promises); } private _clearAndResolveScene() {