Q: I was just wondering… what is the correct approach to detecting GUI mouse over properly?
If the controls are overlapping each other… i dont want the buttons under to get the Hover event.
ex:
This is what i’m doing right now, and it works… but i suspect others have come up a nicer way to do it. Its a work in progress still.
I’ve come across a few bumps, but it seems that the mouse is detecting the correct control (the Controls used in the Right-hand side in the Editor Window)
i dont know what is that thing that you use…but if you want to make sure the hover is the right one…you better check three rect first…then the depth of the object.
I added the basic logic to do this to MyControl Class that i posted above. It will automatically know which button is on top without much trouble.
I’m learning allot as i work with EditorWindow’s. I’m counting on all of you for help if i get stuck. ;D
Hvala za pomoc.
Crna Gora for the Win! Sorry. Have To! ;D
I tried one of the WebPlayer demos for eDriven.
I think i was Dragging the Scrollbar Thumb button and the Log View Panel was Visible and in the way (the bottom right).
I was surprised that Dragging Stopped when it went over the Log View panel? How come? Shouldn’t the Scrollbar Thumb button keep Dragging even when there are other windows above?
I made sure that MyControl would keep dragging even when there were others controls above it. I just like it like that.
Thank you for helping me learn about UnityGUI. I’m still trying to learn all this stuff.
Any suggestions on how i can get an Inverse Color, so i can set the Text color
example:
As you can tell, the user can set the background color for each of the button States.
Instead of having the use also have to specify the Text colors for each of the states, i was hoping to use the Inverse color.