Hi all, it’s been a while since I’ve done these, and can’t figure out what I might be doing wrong. My selectionGrid displays in the game window, but doesn’t seem to return a value
string[] temp = new string[]{"A Button"};
if(showGUI)
{
GUILayout.BeginArea(new Rect(GUIPos.x, Screen.height-GUIPos.y+10, 200, 200));
GUILayout.BeginVertical("box");
Debug.Log (GUILayout.SelectionGrid(towerGridInt, temp, 1));
GUILayout.EndVertical();
GUILayout.EndArea ();
}
The Console does give me the expected readout of “0” when the GUI is opened, but pressing the button does nothing. Any ideas?