Hello.
May i hide one Windows Object and Display others?
Thanks.
Hello.
May i hide one Windows Object and Display others?
Thanks.
Sure. Your OnGUI() code might look something like this:
var state : int = 0;
function OnGUI () {
switch (state) {
case 0:
menuRect = GUILayout.Window(id, menuRect, MenuFunc, "Menu");
break;
case 1:
...
}
...
// code for windows
...
if (GUILayout.Button("Click me!")) {
state = 1;
}
...