Undocumented Vertical Layout Group's "Control Child Size". What does it do?!

Pretty much thread title.
I’m on Unity 5.6.3 using a Vertical Layout Group that is not working as I thought it would. I noticed there’s a “Control Child Size” bool there, but it is not on the documentation and I have no idea what it’s supposed to do and what’s the difference between this and “Child Force Expand”.

From Unity Docs:

From Unity Editor:

Can anyone help me out here?

1 Like

The Child Force Expand control whether the layout group will resize the child component up to fill the size of the parent. It’s not exactly helpful and seems to override the normal behaviour of using a LayoutElement in the children.

if you want to see more just experiment (which is what I did when it popped up), or just look at the UI Source for the layout groups to see what they actually do.

Hope that helps.

I tried experimenting with it too, but I still couldn’t really find a logic. Then I noticed the Vertical Layout Group doesn’t really work with Text children. When your VerticalLayoutGroup children are just Texts, their font size will increase the size of the Rect to fit the text, which doesn’t really make sense and was really getting in the way of figuring out what Child Force Expand is supposed to do.