I make a Scrollview.When i scroll the view, the scene below also respond.
How to make it only respond GUI event when touch the region of GUI component
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The only problem is that if you have several GUI elements in many different scripts they each need to test if Input.mouseCursor is inside a GUI element. One easy way around that is to create a single script that manages GUI rects which you can call from any other script to check.