How to get the panels to stay in the same place in fullscreen and not fullscreen?

So I’m making UI for a game and need these panels to stay in the same place as they represent the border of which the player can move.
The white rectangles represent the border by the way.

This is how it should look in both,

And this is what it looks like fullscreen…

I’ve tried playing around with the anchors and the scale with resolution settings, but they haven’t changed much…

Is there something I’m missing?

1 Like

Check the comparison slider in this my post:

This is pure UI stuff without any physics or controlling the transforms. They use only anchors.

I guess there is something mentioned above in your project that blocks X position.

Thanks for responding, I have checked out your post but am unsure on what you have done.

I have it so that when the player reaches a certain point on both axis, they will be unable to move anymore in that direction. It’s not a game object if that’s what you were wondering, and the white rectangles are for reference.