When I created a ScreenGui and added a Frame to it, I set the frame’s anchor point to {0.5, 0.5} and its position to {0.5, 0} {0.5, 0}. This should centralize the frame to the screen, which it did. However, upon running the game, the frame’s position lowered below the center of the screen. Why does this happen? (When I stopped the game from running, the frame’s position went back to the center of the screen again.)
Could it be that you have Scripts altering the GUI’s positions?
I think this is caused by the default Roblox gui (the Roblox icon, chat icon). I think that gui is higher up in studio is because there isn’t any default Roblox guis and it’s centered on the screen. When you play the game, the “center” of the screen starts below the default Roblox gui.
(not sure if this is the problem or if my explanation makes sense, I’m on mobile)
Just wanted to add on to @Ace_Max01 ’s reply, that there’s a property in ScreenGUIs
that can disable this behaviour, known as IgnoreGuiInset
!
Just means that Roblox might “push” your GUI down to ensure that there is space for the core GUIs.
Thanks for the solution! It worked out. However, just wanted to know, what are the benefits of leaving IgnoreGuiInset off?
It just controls whether a GUI ignores the reserved space for placing CoreGUIs, that’s really all it does
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.