I have a box inside a sphere. I have modified the box renderingGroupId to have it rendered on top of the sphere.
The box also has an OnPickTrigger action but click events aren’t detected.
You get all the meshes picked in the pickedMeshes array. The only thing you need to do is implement your custom logic, for example you can sort the meshes by the value of renderingGroupId and process them in that order.