Vertical/Horizontal Layout Group

I have encountered a couple of issues in 5.5.0f3 with the vertical and horizontal layout groups.

  • It appears that a new feature has been added to these elements - Child Control Size - this appears to be undocumented and I am unclear as to what the feature is meant to do and how to use it.
  • Nested layout groups no longer inherit/adjust to the child sizes. Currently I have a panel with a vertical layout group and content size fitter. If I add child vertical layout groups to this, their children sizes do not change the parent object as previously possible in 5.4. I also can’t nest content size fitters onto these objects. So I am unclear as to how I can have a dynamic UI update based upon nested layout groups.

Thanks

3 Likes

I’ve seen this too, looks like bug reported here (UI.VerticalLayoutGroup changes broke my game UI? - Unity Engine - Unity Discussions) that’s still not fixed. But in any case I’ve still not seen any documentation on these new features.

My layouts are completely disorganized when I hit Play / Stop on Unity Editor.
The values of alignment are no more respected.

Bumping this because this has broken UI prefabs that have been stable through several releases of unity. No dox + no info is pretty frustrating.

Seems like it’s not fixed yet. I hope something happens here? The documentation is still not up2date btw.

It seems that unchecking ‘Align by Geometry’ solves the issue for us, but we’re having to change all of our UI components to fix this issue.

where do you find this option ‘Align by Geometry’?

This issue is STILL not fixed. How did this get passed QA? It completely broken my project.

No doc! No release note references!

the nested layout groups look broken :frowning:

1 Like

I hear you. I’m putting together a full bug report and sample project showing the issue.
Basically as soon as you have any nested layout groups with content size fitters the issue is shown pretty easy.

I would recommend to all to create a bug report and and up vote existing bug reports for the related issues like this one:
https://issuetracker.unity3d.com/issues/layout-groups-with-contentsizefitters-are-not-resizing-if-input-field-component-is-located-in-a-parent-object

And this one:
https://issuetracker.unity3d.com/issues/canvas-with-content-size-fitter-not-resizing-if-ui-elements-are-instantiated-to-its-child-canvas-when-using-waitforseconds

1 Like

thanks for your attention and your efforts to fix this issue.
but the problem goes even deeper. somehow all dynamic content system appeares to be broken.
for example, create a panel, add a child text there and try to make panel to fit text content (follow https://docs.unity3d.com/Manual/HOWTO-UIFitContentSize.html)