This may seem really really dumb, but I've been having trouble preventing click-through happening in my OnGUI controls.
I've seen that many other people have issues with this as well, and lots of innovative (if slightly hacky) solutions have been mentioned; however, I have found that doing something really stupid seems to resolve it for me as well, LOL, so I thought I would shared it.
I haven't tested this on anything other than the PC at this point (I'll test on iOS later.)
My message box class simply draws TWO full screen transparent windows before drawing itself. I had thought originally that drawing one window would solve the problem, but it only solved the problem directly under the controls of my message box (you could still click on everything that wasn't under the message box controls.
This helps with my 'pseudo' modal dialog box system as well.
Just thought I'd share something that makes the optimizer in me cringe, but the productive engineer side of me grin.
Cheers!
↧