Can't dynamically size children in layout group correctly, prefabs taking more space than their parents
I have a Scroll Rect set up with one of the children in the Content object (said child's name is ObjectiveHolder) there to hold dynamically instantiated prefabs. I want ObjectiveHolder to dynamically size itself based on what gets parented to it. Since Content has a VerticalLayoutGroup and a ContentSizeFitter, I shied away from using ContentSizeFitters on any of its children since this documentation told me not to. Apparently, unticking a bunch of boxes in the layout groups makes children resize themselves automatically to fit their content.
That turned out to be completely false, though, but anyways... Said prefabs are often bigger than ObjectiveHolder, so they start overlapping with RewardsHolder, a sibling of it.
I'm at a loss. What should I do? It seems that despite what the documentation said, unticking the Control Child Size boxes doesn't properly auto-size things. And it turns out that ContentSizeFitters do slightly alleviate things, though since they don't take child text fields into account, my problem is far from solved.
Your answer
Follow this Question
Related Questions
Dynamic Menu C# 0 Answers
Precise UI Slide In Animation for Different Aspect Ratios 0 Answers
UI issue, stretching 0 Answers
Layout Group with Content Fitter? 0 Answers
Dynamic UI image scale with Text length? 0 Answers