How To Position Something In the Same Spot on the UI No Matter the Resolution

Hello, sorry for my wordy title, I couldn’t think of what to title this lol. This might sound like I’m just talking about anchors, but I tried a million different presets and pivots don’t seem to change anything??

So, I have a sort of “map” if you will, which is a UI image that covers the entire background… I have a series of transforms that align with spots on this image, and it positions the “merkerba” according to these spots…The issue is, I can’t figure out how to anchor them properly so they ALWAYS stay on the same spot, particularly the bottom 8… I even tried making a holder that held all the bottom transforms and anchoring it to the bottom, but on certain resolutions it’s slightly off…

Here’s the the whole thing looks like,

So, i have these points that are all in text there, but no matter how i anchor them, they won’t stay on the points directly… Is there any way to just make it NOT move at all and have them always stay on the same position of the image no matter how the image stretches? I tried removing the rect transform, that didn’t work either…

Thanks

If you truly want them to display in the same spot no matter what, then put them on their own canvas that doesn’t have a canvas scaler component (or a fixed one).

If you want them to have a little wiggle room, then anchor/pivot them in the bottom middle and adjust the X/Y offsets, so they’ll always be Y units up from the bottom and X units left or right of centre.

1 Like

Everything that Grozz says above, plus a few more notes on this stuff:

Here are some notes on UI Anchoring, Scaling, CanvasScaler, etc:

Obviously it’s not possible to be in the same position relative to the screen when the shape of the screen changes. You have to choose what is “the same” and what isn’t.

1 Like

ohh, I was trying to get it to work with the second canvas, i had it somewhat working, but it was slightly off… but i saw your post there about the canvas scaler settings, turns out setting it to 100% height is all i needed to do! Thank you, it works perfectly now! Thank you Grozzler, too!