Show arbitrary mesh in the scene inspector

Hi all!

Is there a way to do something similar to this? Could not find in the docs :[

scene.onPointerDown = function(e, pick_result){

    var ray = scene.createPickingRay(
        scene.pointerX,
        scene.pointerY,
        BABYLON.Matrix.Identity(),
        camera_free,
        false
    );

    var hit = scene.pickWithRay(ray);
    if(hit.pickedMesh){
        // this
        inspector.display_mesh_info(hit.pickedMesh.name);
    }

}

Thank you!

scene.debugLayer.select(node)

will do the trick.
Example (click on any mesh) - Babylon.js Playground

1 Like

thank you! :slight_smile: