Ignoring the GUI inset

Hey Developers!

We’ve got another awesome feature for you today!

Presenting IgnoreGuiInset: This property allows you to make a ScreenGui and its descendants completely ignore the GUI inset. This means you’ll no longer need to write code to position elements at the very top of the screen (or hard-code in the -36 pixel offset introduced by the top-bar).

This also means that an element with size 1, 0, 1, 0 will completely cover the entire screen, including the space beneath the top-bar.

This feature should be enabled on all platforms.

Stay innovative developers!

144 Likes

How does this interact with UserInputService, Mouse, GUI events, ScreenGui.AbsolutePosition, and other systems that involve screen coordinates?

9 Likes

The player list seems to be showing even when TopBar is disabled. Is this happening because of this change because it hasn’t happened since this was enabled.

EDIT: Appears to happen randomly for no reason. Must be an issue with :SetCore(‘TopbarEnabled’, false) or something.

2 Likes

Great question! Everything still uses the same coordinate space. If you have IgnoreGuiInset set to true then your GUIs will be positioned from 0, 0, 0, -36.

13 Likes

thank mr brad

3 Likes

Rock on Brad :clap:

2 Likes

Woot woot! :sweat_smile:

2 Likes

I have added up-to-date documentation for the two API pages that were linked in this announcement!

http://robloxdev.com/api-reference/property/ScreenGui/IgnoreGuiInset
http://robloxdev.com/api-reference/function/GuiService/GetGuiInset

5 Likes

Excellent addition! Very useful for UI creation.

2 Likes