How to show the selected mesh in different color instead of bounding box in babylonjs

Hi,

As shown in the PG
https://playground.babylonjs.com/#TC2K69#4
How to show the select mesh in different color instead of bounding box in babylonjs. i.e In the Scene Explorer: Scene>> Nodes>>box-1, after select the bounding box, instead of the boxing the selected mesh, Can we select the mesh with different color?

Thanks

I do not think I understand your issue cause it looks like your PG is doing exactly what you ask ? it changes color of the picked mesh ?

Hi,

In the below attached image, On click of “Red” box, the mesh is selected with bounding box. We need, change in color of the mesh(i.e pickInfo.pickedMesh.material.diffuseColor = BABYLON.Color3.Green()), instead of bounding box.We no need to show the bounding box.

Thanks

You can not change this as this is the behavior of the inspector and the button is meant to display the bounding box.

You would need to create your own control for this.

ok.

Thanks

Is it possible to hide the bounding box in Scene Explore?

nope, this is not customizable from the configuration. May I ask a bit more about the use case ?

Ya sure.
On selection of mesh, need to show the different color and pass the info to other page/section of page.

Can you say the event handler name on bounding box select and deselect event and is it possible to add our information to the handler?

In this case why not creating your own UI ? This might be way easier ?