Exclude an object from a VerticalLayoutGroup?

If you have a VerticalLayoutGroup, is there any way to exclude an object from that group? e.g. just have one that float “on top” of the rest of the elements, for example?

(I need this thing to move and scale as a child of the object with the layout group)

2 Likes

Update: decided on making the Layout-ing object a (fully-stretching) child of the object that has the overlay. Works well!

To answer your original question: Unity - Scripting API: UI.LayoutElement.ignoreLayout

5 Likes

Time has drifted and made this linked 404, but I did find this one: https://docs.unity3d.com/Manual/script-LayoutElement.html and on that page you’ll see there is a checkbox for “Ignore Layout.”

11 Likes

Thank you so much :slight_smile: