Hello,
SceneLoader is now obsolete in favor of ImportMeshAsync and LoadAsync. That’s great for modern async workflows, but the plugin registration system is still tied to SceneLoader:
BABYLON.SceneLoader.RegisterPlugin(new MyCustomPlugin('.ext')); BABYLON.SceneLoader.OnPluginActivatedObservable.add(plugin => { ... });
This works, but it’s somewhat confusing because SceneLoader itself is now considered obsolete, and the warnings in IDEs like Visual Studio are distracting.
It would be more consistent and clear if BabylonJS provided a global way to register plugins, for example:
BABYLON.RegisterPlugin(new MyCustomPlugin('.ext')); BABYLON.OnPluginActivatedObservable.add(plugin => { ... });
This approach would:
- Align plugin registration with the new async import API.
- Avoid warnings about
SceneLoaderbeing obsolete. - Make the API more intuitive for new projects.
Thanks for the consideration!