- Home /
Question by
Baalhug · Feb 04, 2014 at 02:54 PM ·
dragscrollviewscrollbarmouseover
I need a way to refer scrollbar or to know its rect
Hi, guys:
I need a way to know when the mouse is over the scrollbar on a scrollview. I have scripted a zoom button and a drag system on the whole GUI layer. Now the problem is when i try to drag the scroll bar, the entire GUI drags. So i need to know when the mouse is over the scrollbar. Remember i'm using scrollview. If i knew the rect of the scrollbar i could use rect.Contains, but the only rect i know is the window's rect defined in the scrollview.
TYIA.
Comment
Best Answer
Answer by Baalhug · Feb 20, 2014 at 04:35 PM
Well, this question is pretty well answered here: http://answers.unity3d.com/questions/637616/is-there-a-way-to-scroll-gui-text-without-scrollba.html