I’m having a big issue with my GUI. The basic style I’m using is:
GUILayout.BeginArea();
GUILayout.FlexibleSpace();
if(GUILayout.Button){}
if(GUILayout.Button){}
if(GUILayout.Button){}
if(GUILayout.Button){}
GUILayout.FlexibleSpace();
GUILayout.EndArea();
Each time a button is clicked, it is eliminated from the menu. In the end, only one button will remain. It works perfectly if the buttons are listed vertically in one column, but I want the buttons to be larger and in two columns.
My buttons have a pre-set width and height. My GUI Area has a width of 800, my buttons each have a width of 300. How can I make them take up the full space of the GUI Area?
TL;DR: A GUILayout area has buttons that disappear. How can these buttons be divided into columns?