* 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>
)
| 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. |
no test coverage detected