Hi im trying to make a drop down list (kind of) by an area being created when I click a button. Right now, both the button and the drop down area an present on the screen and I need to know how to make it so it only appears when I click the button.
`
if(GUI.Button(new Rect(Screen.width/2 -358, 170, 150, 20), selectedItem))
{
editing = true;
}
GUILayout.BeginArea(new Rect(Screen.width/2 - 358, 190, 150, 60), ":, "Box");
foreach(MapSetting map in MultiplayerManager.instance.MapList)
{
if(GUILayout.Button(map.MapName))
{
NavigateTo("Host");
MultiplayerManager.instance.CurrentMap = map;
}
}
GUILayout.EndArea();