I’m making a custom extension to the TopBar and I wanted to ask what Roblox’s padding on the TopBar is (Is it a pixel size, a scale, etc)
1 Like
Do you mean the size of the topbar, or the padding between the edge of the topbar and an element inside it?
The size is 36 pixels on the Y axis
You can view a copy of it by copying the RobloxGui in game.CoreGui during a test.
1 Like
FYI: Roblox on the Xbox doesn’t have a top bar. The size of the top bar may also be subject to change at some point in the future.
If you want to future-proof your code (and have it behave the same way on the Xbox as it does on PC), use GuiService:GetGuiInset().
2 Likes