hit2501 Posted April 12, 2018 Share Posted April 12, 2018 Hi, Maybe its a dumb question but how can I get only the first mesh of a imported model from Blender? Until now I had no reason to use another thing like: scene.getMeshByName("unique_mesh"); But now I need to get only the first one (nad meybe the third one) to make changes in babylon. How can I achieve it? Thank you all. Quote Link to comment Share on other sites More sharing options...
Guest Posted April 12, 2018 Share Posted April 12, 2018 When using SceneLoader.ImportMesh, you can define a callback. This callback will provide you with an array of loaded meshes. Just pick loadedMeshes[0] to get the first one Example: https://www.babylonjs-playground.com/#10D6YT#116 hit2501 1 Quote Link to comment Share on other sites More sharing options...
hit2501 Posted April 13, 2018 Author Share Posted April 13, 2018 Thank you Delta, I think thats what I was looking for GameMonetize 1 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.