Basically, this is what I’m going through:
https://forum.unity.com/threads/cant-get-gridlayout-to-work.1096270/
How do I get around this bug?
Basically, this is what I’m going through:
https://forum.unity.com/threads/cant-get-gridlayout-to-work.1096270/
How do I get around this bug?
There is no bug. It uses the width of the parent.
You can change the width of the parent from code (number of buttons * button width + spacing). Alternatively, the Horizontal/Vertical Layout Group components also calculate a width/height which can be used by a Content Size Fitter, so maybe some combo of those will work.
Ah I see. Thank you so much. Changing the width value of the parent from the inspector worked just fine.