Jump to content

Help with my measurement code


MattB
 Share

Recommended Posts

I'm trying to make it so the user can create multiple measurements and then delete them individually.  In the playground below, if you click in two different spots on the meshes it will create a measurement.  If you click the measurement it will expand it, and if you click the X it will delete it.  However, if there are two or more measurements it will only delete the last one - what am I missing?

https://playground.babylonjs.com/#JIHTLS

Thanks :)

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...