burbonvagin Posted July 31, 2014 Share Posted July 31, 2014 In babylon.js cameras, lights, and meshes require you to give them names. In three.js they don't. I assume three.js generates them for you. Why is it useful to name them yourself? Quote Link to comment Share on other sites More sharing options...
reddozen Posted July 31, 2014 Share Posted July 31, 2014 var myMesh = scene.getMeshByName("<name>");myMesh.rotation....... If you have a large scene it can often be easier to reference known objects by name than internal ID. burbonvagin 1 Quote Link to comment Share on other sites More sharing options...
Dad72 Posted July 31, 2014 Share Posted July 31, 2014 Because babylon has thought of everything for developers. Quote Link to comment Share on other sites More sharing options...
burbonvagin Posted July 31, 2014 Author Share Posted July 31, 2014 I didn't know scene.getMeshByName existed 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.