securet Posted December 14, 2016 Share Posted December 14, 2016 must the ID provided when creating a Mesh be unique? I mean the first parameter: var sphere = BABYLON.Mesh.CreateSphere(ID, 16, .5, scene, true) Quote Link to comment Share on other sites More sharing options...
Temechon Posted December 14, 2016 Share Posted December 14, 2016 No, all meshes are unique by default, even if two object have the same name. It's just a convenient thing to use : you can get a mesh by its name, or display the mesh name for debug purpose. Quote Link to comment Share on other sites More sharing options...
RaananW Posted December 14, 2016 Share Posted December 14, 2016 Adding just a bit - any node (mesh, camera, light) created has also a uniqueId variable which is an automatically generated integer. 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.