MCPcopy
hub / github.com/4ian/GDevelop / loadAndProcessSceneResources

Method loadAndProcessSceneResources

GDJS/Runtime/ResourceLoader.ts:385–397  ·  view source on GitHub ↗

* Load and process a scene that is needed right away. * * The renderer will show a loading screen while its done.

(
      sceneName: string,
      onProgress?: (count: number, total: number) => Promise<void>
    )

Source from the content-addressed store, hash-verified

383 * The renderer will show a loading screen while its done.
384 */
385 async loadAndProcessSceneResources(
386 sceneName: string,
387 onProgress?: (count: number, total: number) => Promise<void>
388 ): Promise<void> {
389 if (this.areSceneAssetsReady(sceneName)) {
390 return;
391 }
392 await this.loadSceneResources(sceneName, onProgress);
393 await this.sceneResourceLoadingQueue.processResources(
394 sceneName,
395 onProgress
396 );
397 }
398
399 /**
400 * Load a scene resources without parsing them.

Callers 2

loadSceneAssetsMethod · 0.80
ResourceLoader.jsFile · 0.80

Calls 3

areSceneAssetsReadyMethod · 0.95
loadSceneResourcesMethod · 0.95
processResourcesMethod · 0.80

Tested by

no test coverage detected