I call Babylonjs through Vue and I load several glb files with SceneLoader.ImportMesh.
Here is part of my code:
BABYLON.SceneLoader.ImportMesh("","static/gltf/", "Tile_+002_+003.glb", scene, function (mesh) {
});
BABYLON.SceneLoader.ImportMesh("","static/gltf/", "Tile_+002_+004.glb", scene, function (mesh) {
});
BABYLON.SceneLoader.ImportMesh("","static/gltf/", "Tile_+003_+001.glb", scene, function (mesh) {
});
I want to clear all loaded resources when I leave the model page.What should I do?