- Home /
Bringing a GUI window to the front
I have been programming GUIs in Unity for some time now and I got a very successful combo box showing up. I made three more combo boxes, one beneath the other and what I notice is that when I open up the combo box its text and GUI box is drawn behind. I have the output to better explain my issue:
Is there a way where I can bring the window forth every time the user clicks on the combo box?
Answer by poncho · Feb 27, 2014 at 04:48 PM
yes, first you need to have an "ActiveControl" variable, that could help you to show and hide the black area of the selectable items, it will show ONLY if the ActiveControl is that dropdown, if you select the second combo, the active control will be combo2 and block the combo1 showing its area
I believe I attempted something like that but it did not seem to go well. Because I know there are other GUI functions that bring GUI windows forth and focus window but that requires me making a windowID which I do not use. I will give your suggestion a try and hopefully it gives me the result I seek. Thank you.
Your answer
Follow this Question
Related Questions
C# Applying Transparency to a Single GUI.Button 1 Answer
C# Boolean Doesn't Change Value 1 Answer
Enable and disable a button selection 3 Answers
Issues creating a progress bar 1 Answer
Issues with Render Texture 1 Answer