Jump to content

ID of object


Recommended Posts


I hope you are all well today.


I have this simple question... :)


When we instanciate an object, it should have its name as an ID, but what if we use a loop for example ? Where does the ID source its value, then ?


Thank you.

Link to comment
Share on other sites

Sorry its my fault, I had a feeling that it wasn't very clear.


I meant, Where does a Mesh for example source its ID value when we its instaciated within a loop for example ? Like in:

for(var i = 0; i < 10; i++){mesh[i] = new BABYLON.Mesh.CreatePlane("MyPlane", 1, scene, false);}//I'm asking this because the ID is usually meant to be a unique identificator, whereas the default in Babylon is to take the value of the name as an ID, but in a case like the one above, I wanted to know where does it source its ID.
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.

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.


  • Recently Browsing   0 members

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