- What do you want to achieve? Keep it simple and clear!
For my UI, I want to make some frames in a UIListLayout turn invisible, while have other frames visible.
- What is the issue? Include screenshots / videos if possible!
Whenever I set one of the frames invisible, the UIListLayout automatically fills in that space. I need to find a way for the UIListLayout to ignore that empty space and keep my frames where they are.
An example of what I mean:
What I want my UI to look like:
BEFORE TURNING A FRAME INVISIBLE:
[Frame1, Frame2, Frame3]
AFTER TURNING Frame2 INVISIBLE:
[Frame1, SPACE, Frame3]
What it looks like instead:
BEFORE TURNING A FRAME INVISIBLE:
[Frame1, Frame2, Frame3]
AFTER TURNING Frame2 INVISIBLE:
[Frame1, Frame3]
- What solutions have you tried so far? Did you look for solutions on the Developer Hub?
One solution is to set every child in a frame to Transparency = 1, but with so many things in the frame, including TextLabels and ImageLabels (which all use BackgroundTransparency, TextTransparency, ImageTransparency, etc.), that would be very rigorous for what I am working on.
Here is a post that explains very well what I am trying to achieve, except I want this to be intentional, and not a bug as mentioned in this post.
Thank you for taking the time to read this.
EDIT: Here’s a visual demonstration of what my problem is.