Quantcast
Channel: Answers for "Yet Another GUI vs. Raycasting question."
Browsing all 4 articles
Browse latest View live

Answer by aldonaletto

You can define two rectangles (one for each menu) in pixel coordinates, and disable raycasting when the mouse pointer is inside any of these rectangles: var rMenu1 = Rect(20,200,180,400); var rMenu2 =...

View Article



Answer by JasonM

Your solution works, but for if you are using a GUILayout window (like one that can be dragged around) youll find that the y position is wrong. heres my quick fix if someone is still struggling var...

View Article

Answer by aldonaletto

You can define two rectangles (one for each menu) in pixel coordinates, and disable raycasting when the mouse pointer is inside any of these rectangles: var rMenu1 = Rect(20,200,180,400); var rMenu2 =...

View Article

Answer by JasonM

Your solution works, but for if you are using a GUILayout window (like one that can be dragged around) youll find that the y position is wrong. heres my quick fix if someone is still struggling var...

View Article
Browsing all 4 articles
Browse latest View live




Latest Images