learn3d Posted December 18, 2017 Share Posted December 18, 2017 Hey my project is still in the beginning - so after i start my browser there is no menu. My model, slider and labels are directly visible. And unfortunately only 1 javascript file but thats topic for the next weeks.. My question is: i debugged my code and wonder why the "BABYLON.SceneLoader.ImportMesh(...){...}; is the last one executed. The functions outside the ImportMesh function can't access. Only the sliders in runtime. How is the workflow for loading the mesh and after its loaded the other functions can work with my meshes. Hope you can understand my problem Quote Link to comment Share on other sites More sharing options...
JohnK Posted December 18, 2017 Share Posted December 18, 2017 You can only access an imported mesh after it has loaded. The function 3 hours ago, learn3d said: BABYLON.SceneLoader.ImportMesh is only executed after the meshes are loaded and is therefore where you can safely manipulate the imported meshes. Quote Link to comment Share on other sites More sharing options...
learn3d Posted December 19, 2017 Author Share Posted December 19, 2017 Thanks for your reply. For now my functions for manipulating the mesh will be called at the end of the ImportMesh function. There must be another way? Quote Link to comment Share on other sites More sharing options...
JohnK Posted December 19, 2017 Share Posted December 19, 2017 This could be worth a look You might have to read some earlier posts in that thread. 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.