Hi, I have an editor window with a button.
How do I make it so that every time the button is pressed a new guiWindow pops up?
So far I tried:
if(GUILayout.Button("Add Window", GUILayout.Width(150), GUILayout.Height(50))){
windowsOpen++;
showWindows = true;
}
then I have:
if(showWindows){
windowRect = GUILayout.Window (windowsOpen, windowRect, EntryWindow, "Window "+windowsOpen.ToString());
}
I didn’t really expect this to work and it didn’t. The results are, when I click the button the first time a window pops up and any additional time the title just increments but no *New window comes up. Any ideas on how to duplicate guiWindows on button click?