Grid Layout - Help with Layout

Hi!

1 - I’m using a GridLayout Group with 2 columns, and if I have an even number of buttons, it’s ok.

3885766--330349--upload_2018-11-13_9-56-29.png

2 - But if I have an Even number of buttons, I would like that the “single” button would be centered.

3885766--330346--upload_2018-11-13_9-56-21.png

3 - But that does not happen, with an even number of buttons the layout is this :

3885766--330352--upload_2018-11-13_9-58-37.png

Is there some way to make the layout follow model 2 if there are an even number of items?

Thanks

Hmm… I’m not sure there’s a convenient way to do this with a grid layout group. Maybe you could try a vertical layout group to create the rows, and each row is a horizontal layout group so the contents are centered horizontally in the row.

Yesterday I wanted to have the same… ended up in creating two separate layout groups - one for each row…