- Home /
Question by
Pangamini · May 04, 2015 at 08:32 AM ·
guiscrollview
EditorGUILayout.GetLastRect within ScrollView
EditorGUILayout: I am trying to detect if mouse is over an item inside a ScrollView. I am using the GetLastRect method. The problem is that mouse will be inside this rect even if it's overlaid by the scrollbar. Using the detection to enable drag'n'drop will disallow me to drag the scrollbar, because my gui code initializes the dragging sooner. I tried to clamp the rect using the GetLastRect of the entire scrollView, but it includes the size with scrollViews.
How can i detect the hover over my element correctly?
Comment
Your answer
Follow this Question
Related Questions
Show content with scrollbar? 2 Answers
Invisible BeginScrollView thumb 0 Answers
Change Background Color of ScrollView? 2 Answers
Putting Dictionary/List using foreach as buttons in a scroll view? 3 Answers