close close close close close close close
To do this, you need to play around with the anchor points and position. An anchor point of 0.5, 1
and a position (from scale) of 0.5, 1
will place the UI on the bottom middle of the screen, and it will keep it there on any screen size. This will change if you’re using UIAspectRatioConstraint though and have the DominantAxis set to width. You’re going to have to set it to height or AspectType to ScaleWithParentSize. Don’t quite remember which for the latter, but play around with it.
Doing so made that frame go out of the main frame or way too far from where its supposed to be at.
Setting the anchor point of 0.5, 1
and a position of 0.5, 1
(scale) can’t make the frame go out of bounds.
I tried it below, where the red square is a Frame and the white square is another frame inside of it. Are there any other properties you have that might affect the offset?
Also, if you don’t want it to “stick” to the bottom you have to decrease it’s Y scale position to something like 0.9 to add padding from the bottom.