PC:
iPhone X:
Not sure if this is what you wanted.
GUI.rbxm (7.7 KB)
The game isnât loading in roblox studio
itâs not a game, drag the file in your workspace
The Ui Grid layout in the first frame also changes the frames in the buttons and makes them weird. Though I appreciate your help.
This would just place the GUI in the middle of the screen on the Y-axis. Having anchor points with 0.5
is usually used to center things around an axis.
As for the OP. Assuming each frame is parented to the white frame, you can lock it on the bottom of the screen by using an anchor point of 0.5, 1
. Youâd also want to set the position of the frame to 0.5, 0, 1, 0
.
An anchor point of 0.5, 1
has the anchor centred at the bottom of the frame:
You also want to place it at the bottom of the screen. So thatâs why we have the position as 0.5, 0, 1, 0
:
Now the anchor point and the position will come together:
I tried that,
It had the same result from Judgy_Oreos Solution.
No solutions so far hasnât worked, so instead I just revamped the whole thing and put the gui on the side.
If no solutions work, this has to be on Roblox Studioâs fault.
If any of you want to try a new solution tho, feel free to try it.
Ill just mark this as a glitch for the meanwhile.
Put a UiAspectRatioConstraint in. thats it
This is not a glitch. Itâs not positioned and scaled properly.
As other people have stated, you should use a UIAsectRatioConstraint and adjust the AspectRatio
property until it looks right. Then, position it using the method I provided in my previous post.
âŚTherefore making the positionâs Y component 0.5 and the AnchorPointâs Y component 0.5 would put it in the middle of the white frame along the Y axis??
GOD
Ive said this a MILLION TIMES,
The gui IS SCALED
And its using a UiAspectRatioConstraint
Dont people read the main posts anymore???
IT LITERALLY SAYS IT ON THE POST
That is exactly what I did which then again ended up with almost the same result of @Judgy_Oreoâs solution.
UIAspectRatioConstraint is exactly what you need. Its not possible that it is not working on such a simple gui.
I assumed that the problem with positioning came from the outer white frame, the inner frames. Even so, having the anchor point in the center wonât fix anything if everything else is using scale.
I guess the only way to fix this problem is to show an example.
I wanted the solution to be as simple as possible, so I tried my best to dumb it down as much as I can. But, that didnât fix the problem.
This solution will be complex, but the solution works. Youâd have to use AutomaticSize
.
AutomaticSize
on the X-axis, as the Y-axis is already scaled and the X-axis is going to be scaled. This Frame would also be positioned with the steps of my first reply
CellPadding
and CellSize
properties until they look right. Make sure FillDirection
is set to Vertical
and HorizontalAlignement
is set to Center
Thereâs also another way, without the use of UIGridLayout. Using a UIListLayout and substituting the Size
property of the UIGridLayout and inserting UIAspectRatioConstraints within each button also works. This removed the unnecessary borders around the GUI.
The higher one uses a UIListLayout, the lower one uses a UIGridLayout:
Side note. Using scale for everything is less than optimal. Try practicing using offset values as well. I used only scale for the solution but offset wouldâve looked nicer (itâs more accurate and consistent).