making a minimap, well a GPS map need help

So i’ve got this im making a minimap with UMG, and i want to mark soldiers position with icons, the thing is that depending of the size of the viewport, it has a different location, for to set the 2d vector, is there a function to get the size of the UMG canvas that could help me? will update with images soon.

Widget Variable -> “Get Cached Geometry” -> “Get Absolute Size”


alrigth thanks for the input matan :slight_smile:

this is how I create the icon and add it to the canvas and also set it’s position BTW matan it returns me 0 if I do with Widget or canvas

will update with more images. in same post thanks for offering help.