Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
import { SceneLoader } from "@babylonjs/core/Loading/sceneLoader";
import {} from "@babylonjs/loaders/glTF/2.0/glTFLoader";
const ImportModel ={
/**
*
* @param {*} meshName
* @param {*} rootURLPath
* @param {*} sceneFilename
* @param {*} scene
*/
importMeshModel: function(meshName,rootURLPath,sceneFilename,scene){
SceneLoader.ImportMesh(meshName, rootURLPath, sceneFilename, scene,function(result){
});
},
// not work yet
importBabylonFormatModel: function(rootUrl,sceneFilename,engine){
SceneLoader.Load(rootUrl,sceneFilename,engine);
}
};
export {ImportModel};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.