GUI.BringWindowToFront is not what I want. 'cause when I put window A to front,then click window B, while B won’t to show in the front.
I dont know is there a common way to solve the problem,that
if I open the window, the window should appear in the front.
??
Can you post the code you are using to handle the windows? I think this is actually a Unity bug, but it would be as well to check that there isn’t another explanation.
just plain window.
when open each window, I use GUI.BringWindowToFront(windowID)to bring the window to front.while once window A opened,and then open windowB, now you can’t bring windowA to front.
what I want is
- the nearest opened window is always above others when opened.
- if click some parts of the window, no matter how many windows are above it,the window always shows above.
additional:
1.now I specify different window with different ID,from 1,2,…, as u all knows,if two windows with the same ID,such as WndA and WndB,when you first open WndA, then Open WndB, conflict may happens.So I’d want to know is there any better way to generate windowID not manually.
2. how to manage the opened window,especially its generate area in the screen.I know when you create one window, you can define the location of the window on the screen,while it’s difficult to deal with it auto,the problem is vivid especially when there are too many windows to draw. I’d like to see a settle method that (take care of the position) the first windowA is opened at Rect(x,y,width,height),then when the second opened window is windowB,its location is Rect(x+20,y+20,width,height),third windowC is Rect(x+40,y+40,width,height);if you second open window C, then window C’s location is Rect(x+20,y+20,width,height),the third windowB is Rect(x+40,y+40,width,height).
As refers above, I can’t handle many windows freely to let it show front or back to others now,and can’t to deal with bring window to front or back as what I want.
regards~~