- Home /
Unity 4.7 - OnGUI prevent click/touch through
How can I prevent click/tap through on the immediate mode GUI (OnGUI)?
I have a HorizontalSlider and behind it is a button (on a different window), if I click/tap the HorizontalSlider to move the thumb, the event passes through to the button as well.
Note, the project is 4.7 and cant use the Canvas... unfortunately
Comment
Your answer
Follow this Question
Related Questions
OnGUI() not being called in Monobehaviour 1 Answer
How to change Normal color, Highlighted color etc. in 4.6 buttons with code 2 Answers
GUI.DrawTexture shows texture half transparent and with wrong colors 1 Answer
Making a text box appear after a certain gameObject is destroyed 0 Answers
Move gameobject to button in new 4.6? 0 Answers