In this playground (https://www.babylonjs-playground.com/#31M2AP#47) it is creating a custom utility layer renderer, adding a gizmo in it, then the gizmo is attached to an object in the main scene, pointer events work. Or are you trying to do something different?
Sorry I was not clear. I’m trying to attach a gizmo on a mesh created on specific UtilityLayerRenderer.
The example you gave me , the meshes are on the main scene.
Yea, I tried https://www.babylonjs-playground.com/#31M2AP#48 and see that there is an issue as there is no way to specify the priority of the rendering or picking. I will add a method to reorder observables makeTopPriority and makeBottomPriority and expose these on the utility layer.
In that playground there is a custom utility layer which the sphere mesh is added to. Then the gizmo is added to another utility layer on top of that one. The gizmo works as expected. Scene pointer event on the meshes gizmo layer supports picking. Is there something that you would like to work differently?