I have a widget consisting of a canvas panel and an image inside.
I want to move and zoom this image as like it’s a map, but the problem is that these operations may take the image out of area of the screen.
I tried to take a cached geometry of the image and using the actual size of the image and the screen clamp it, but it doesn’t work on all types of screens (Even if it works on viewport, it doesn’t on PIE with different sizes).
Hello Cybeaster!
From what I can see, it seems that the UI does not have an anchor. the anchor takes the size of the screen (no matter the screen size) and makes it so that the image is always in the same position and size relative to the screen size.
Here is a short video tutorial explaining anchor point on the UI
Hope this helps!