Aidoru Posted July 31, 2018 Share Posted July 31, 2018 Hello, I have a problem using assetsManager, if I use SceneLoader.ImportMesh everythings work: BABYLON.SceneLoader.ImportMesh("", "public/Models/", "parte.stl", scene, function (newScene) { // ... }); but using assetsManager nothig works var assetsManager = new BABYLON.AssetsManager(scene); var meshTask = assetsManager.addMeshTask("model", "", "public/Models/", "parte.stl"); meshTask.onSuccess = function (task) { console.log("successo"); task.loadedMeshes[0].position = BABYLON.Vector3.Zero(); } meshTask.onError = function (task, message, exception) { console.log("errore"); console.log(message, exception); } it doesn't enter in any function, not in .onSuccess and not in .onError. Does someone know where is the problem? Thank you Quote Link to comment Share on other sites More sharing options...
Guest Posted July 31, 2018 Share Posted July 31, 2018 Hello and welcome You are not in the right sub forum (I already mentioned that on your other post) For your question, did you call assetManager.load() ? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.