How to make custom Unity LayoutGroup expand to fit contents
问题 I am attempting to use a custom FlowLayoutGroup as described in the answers of this question ( also up on GitHub) in a situation where it needs to resize vertically to contain it's children. My setup looks like this: ScrollableRect Panel with VerticalLayoutGroup comp (content of parent scrollrect) that should resize vertically to fit children: Panel with FlowLayoutGroup that should resize vertically to fit children Panel with FlowLayoutGroup (2) also must resize... etc... I have added a