So I think this is probably expected behavior but I am having a hard time figuring out how to solve this problem. I have a mesh, and when you click on it, a holographic copy of it appears which has a mesh drag behavior so you can position it. If you click on the hologram, the hologram disappears. The problem is that the hologram starts at the same location as the original, so the original click on the original mesh ends up registering on the hologram too making the hologram appear and disappear immediately. If you drag on the first click, it stays like it should, but I can’t rely on that. I need to make it so the first click only makes it appear, and subsequent clicks make it disappear.
Is there a way I can prevent the click on the hologram?
Here is a PG with the behavior: https://www.babylonjs-playground.com/#9UFEBE#31