Completely hiding widget elements

Hi, I am making a local multiplayer game, and I have made a menu, where you can choose the number of players, and then each player can choose their car (it’s a racing game) in their own collumn, like in the game Crawl : Crawl menu - Imgur

But the problem is that I haven’t found any way to hide the collumns, for example hide the fourth collumn, when you choose to only play with 3 players. I could use the set visibility node, but then it would just hide the collumn, and not adjust the other ones to center them. So what I want is to hide them, as if they weren’t there.

Maybe some of you have knowledge in web development, and what I am trying to acchieve is the equivalent to the CSS display: none.

Do you really need to have the fourth column in the background when no fourth player exists? If you don’t, you could create the columns as sub-widgets in a loop (looping over as many players as you wish). Then you could display the columns depending on the existing amount.

I did that similarly in one of my own projects.
In the “Event Construct” of a overview widget, I created multiple elements (“sb mastered jobs list” is a box in my overview widget):

Thank you mistercokes,
Your solution seems to be what I need, but how can I remove the collumns afterwards? Do they remove themselves when you remove the widget from parent ? Because if you choose to add four players, and then want to play with only three, would I have to reconstruct the widget with 3 players, and would that have removed the fourth collumn ?

I just tested with the example above, a simple “Remove Child” was enough to remove the column after widget creation (see attached picture, in this case triggered by a button in the widget).

So if you want the person to be able to change the player count in this overview itself, you could e.g. always remove the last entries to fit the column count.

Afterwards, starting the game, you could then check for all existing children what values have been entered.