You can use CanvasToLayer and LayerToCanvas to get the X Y of an object on a different layer
example
CanvasToLayerX("UI",LayerToCanvasX("game",object.x,object.y),LayerToCanvasY("game",object.x,object.y))
CanvasToLayerY("UI",LayerToCanvasX("game",object.x,object.y),LayerToCanvasY("game",object.x,object.y))