Gui invisible only in-game but not studio? (UIListLayout Issue)

UPDATE:
image
Turning ClipDescendants off shows I was right with assuming that Wraps just turns off ingame. Anyone else that has had this issue do tell.

UPDATE 2:
Fixed it by just using a UIGridLayout instead. Still no clue why Wraps is forced to off ingame. Love it.

—ORIGINAL POST—
This is one of those cases where I just wished I could see in the game while playing it. Everything has worked fine in studio and that’s obviously how I’ve been developing it. Upon testing in-game however, it works fine! Its just invisible. I’m printing the visibility of each tile and its telling me true, printing each parent of these tiles and its telling me true. I’m not sure if its something to do with the viewport frame but if it works in studio I see no reason for it to be broken in-game.

Before you ask:
No, nothing has errored. In fact nothing is even being printed. Debug code shows it to be running perfectly fine.

STUDIO:
image

GAME
image

3 Likes

Firstly, i believe that something went wrong with the creating and/or parenting of each button.
Secondly, we can’t help you if you don’t include your code/approx. how your code works

2 Likes

I’m saying it works fine, so the code isn’t the issue. The most I’ll give is the layout of the gui but it’s as expected.
image
ItemButtonTemplate gets cloned and loaded into Frame, which has a UIListLayout that Wraps.
The ItemButtonTemplate is whats not appearing, here is that.
image

1 Like

Try printing the number of children of frame in game

1 Like

I have already said that I’ve printed the visibility of the buttons and the frame. You can see clearly that there’s a textlabel visible but everything else is not. I couldn’t print anything if they weren’t there.

Edit:
I mention the UIListLayout Wraps because it reproduces a similar effect ingame with Wraps set to off. Not sure if Wraps is set to false automatically or something.

well I always use UIGridLayout, so there’s not much I can help with that,