Jump to content

SceneLoader ImportMesh Workflow Order


learn3d
 Share

Recommended Posts

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 :)

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...