Gizmo manager - End event, get selected mesh

Hello,

I want to create a kinda WYSISYG editor for a scene, so when the user modifies a mesh using the gizmo then the end event is fired and I can store the position (or rotation/scale) in a variable.
I hav found this playground and I would of thourght I could of made the following changes and it would of given me what I wanted:

var dragEnd = (e)=>{
    console.log("end")
    console.log(e) // e.mesh ???
}
gizmo.onDragEndObservable.add(dragEnd)

But alas, the event is an empty object.

How do I get the selected mesh from inside the end event?

Thanks

Hi

e is an event IIRC. But if you know the gizmo, you can query the attached mesh or attached node.

hmmm, yes you are right, there is another way to do what I need. Thanks