Customize boundingboxgizmo

I was wanting to customize the boundingboxgizmo so that when a node is selected it puts the nodes name or uniqueid in a corner of the boundingbox. Is this do able? If so any pointers on how I could do that?

Would be best if you create a playground, but the approach I’d take is:

  1. Monitor BoundingBoxGizmo.attachedNode (there doesn’t seem to be an onNodeAttachedObservable unfortunately)
  2. When not null, get attachedNode.name
  3. Display name using a billboarded, mesh-linked GUI TextBlock or Hotspot
  4. If instead of linking to the attached mesh, you could just grab a reference to one of the BoundingBoxGizmo’s corner drag handle meshes and link the mesh name text label to that.
2 Likes

I used gemini and it created one for me, a couple of small tweaks and it works great.

2 Likes