I’m looking for a way to make GUI windows where the number of windows are volatile.
I tried to set a for loop and assign GUI.window to a Rect array, but it only the first and the last window are dragable the rest are static.
I appreciate your responds,
The code:
void MakeWindows(){
int windowIndex = 0;
foreach (string name in objNames) {
BeginWindows();
windowRects[windowIndex] = GUILayout.Window (windowIndex, windowRects[windowIndex], DoMyWindow, name);
EndWindows();
windowIndex++;
}
}