How to see UI element outline with UIGridLayout

image
You can’t see the outer edges of the ImageButton’s outline. I’ve tried setting the type to Inset and Middle, but that doesn’t work.

2 Likes

Add a UIPadding into the frame with the UIGridLayout, that will allow you to push everything in slightly, thus letting you see the outlines.

UIPadding doesn’t react to the parented frame

You can make use of UIPadding, or you can set the border mode to “Inset”

I said that I tried that and it didn’t work

You tried setting it to inset for the border mode? And on the topic of UI Padding, I use it in my game and it works just fine. What does your layout look like?

Yes.
Is it a UIGridLayout?
image

It is, because if you drop a UIPadding element into the frame there, so it’s at the same level as your grid, it should work just fine.

Just opened studio so I can grab mine.

Ah a UIPadding. Got it, thanks!
image

What were you trying before? haha

The padding option in the UIGridLayout

Ah. Yeah that’s just the padding between each element.