I previously had an issue of having two meshes for each object so I changed the export to a Babylon file which baked the meshes into one object as you can see in this structure.
However, the issue I am having is the mesh is registering the name in the pick box but there are issues with highlighting. sometimes none are highlighted and sometimes two are highlighted when hovering over the buildings. Is there something I can change in the code to pick the mesh by name to avoid this strange issue.
I want to avoid cloning and deleting meshes where possible.
You can see on the spector capture above 2 houses drawn in one call as they rely on instances. Highlighting unique instances is not supported by the underlying tech for highlights.
I’ve got it sorted with going back to the cloning method. I’m not sure how to render edges on hover but if someone could share some code in this playground that would be greatly appreciated. I’ll stick to the clone and highlight method if not.