Whether to override editor configuration with settings and data from the scene file. The scene’s variables load either way, and a key that is not valid is repaired, such as ubq.name to ubq_name. A variable set while no scene existed replaces the loaded value of its key. Defaults to false.
waitForResources?
boolean
Whether to wait for all resources to finish loading before resolving. Defaults to false.
onProgress?
(percent) => void
Receives the percentage of the archive that the engine has read, from 0 to 100, once for each whole percent. Each call reports a higher percent than the call before. The engine reports only with the features/fileSystemUsageEnabled setting on, which is the default unless featureFlags.fileSystemUsageEnabled is false. An archive that the engine streams reports each percent. An archive that is already in memory reports only 100. A scene file gives no call. The engine reports at the end of the update that read that far, so the call with 100 can come after the returned promise resolves. The engine reports 100 before it parses the scene, so the promise can still reject after that call. A throw in this callback is logged and does not stop the load.
abortSignal?
AbortSignal
Stops the load when it aborts. The promise then rejects with Error('AbortSignal received'), and the engine stops the download, unless a block or another call needs the same file. The current scene stays, unless the new scene replaced it already, as it does before a wait for its resources.