I am loading gltf files using SceneLoader.Load in a canvas that is part of a SPA app. In my app it is possible to switch between scenes while they are loading, I would like to cancel the Load event for one of the Scenes when loading the new one. Would it be possible to cancel/abort the Load event with SceneLoader to avoid loading 2 files?
I think only the gltf loader has a dispose function so unfortunately you will either need to check the plugin name being gltf to cast as GLTFFileLoader or IDisposable.
You could also check if loader.dispose exists before calling it.