Give us a way to make UI elements ignore UI constraints

Currently, it is a hassle to make a UI element not be affected by UI constraints such as UIListLayouts and UIGridLayouts. To achieve this, you need to move the element to a different parent, which then means you have to jump through a bunch of hoops to size and position it. Sometimes this requires completely reworking your code, which is annoying in itself.

It’d be cool if we could have certain elements ignore UI constraints even when parented to the same object. Then we could have more control over the size and position of those elements.

33 Likes

I’ve always found the current constraints/layouts weird to use because it can get disorganized quite fast. I think it’s mainly because of the fact that it’s a whole new instance instead of a property extension, which I’d like more. I’m currently making a plugin and I’m using a UIListLayout to display a huge list of classes, and man that pesky layout is making my code so much longer! For example, I need to make sure it gets filtered out when using :GetChildren().

1 Like

Hi @Intended_Pun - to help better understand your request, can you provide some more context around your use case? What sort of UI are you building? In your workflow, at which points do you run into this issue, and - assuming UIConstraints could be ignored on a case-by-case basis - what would be the desired result?

Thanks!

Thanks for looking into this!

I run into this issue a lot when making things with UIGrid and ListLayouts.

Say I’m making a shop and decide I want to add a next button. Ideally, I could just add it with my shop items in the same frame and be done. Unfortunately, my button behaves like my shop buttons and I am forced to add another frame to contain one single button.

I also use ImageLabels as backgrounds for many menus in my game, and they get pushed below buttons in my frames bu UIConstraints. I have to clutter my project by adding frivolous frames to store both my buttons and my backgrounds to get my desired look.

Lastly, for scripting purposes this would give me greater control on animations relating to an object’s size and position. I could make a button being controlled by a UIGridLayout expand when a user hovers over it, or make my buttons slide into position instead of just abruptly being there.

Ultimately, this feature would make UIConstraints much easier to work with. I hope this helps!

2 Likes

I think Constraints should Ignore UI elements instead otherwise we might have further problems.

Please make the ignore list an array that will ignore descents and not for a single instance, like Mouse.Filter.

2 Likes

Really need this!! Have to make so many ‘container’ frames to have elements that ignore the layouts. Really annoying and a hassle to work with

Not to mention, you’re essentially praying to Jesus using the new AutomaticSize feature and multiple nested frames. It’s a bit of a scaling lottery

5 Likes

Still need this. With the release of flex features, this has become more glaring of a limitation. The lack of this feature makes a whole variety of UI components much harder to create.

2 Likes