Пример #1
0
 public static Vector2 GetViewportGlobalPosition(CanvasItem canvasItem)
 {
     return(canvasItem.GetViewportTransform().AffineInverse().Xform(new Vector2(0, 0)));
 }