- Home /
Grid and Canvas react on mouse events simultaneously
Hello,
I have a problem in Unity where the Grid and the Canvas will simultaneously interact with mouse events.
I have a script attached to my Grid that uses the function OnMouseDrag() in order to move the Camera over the Grid (The grid has a boxCollider component in order to achieve that). In my Canvas i've created a List using a Scrollview. Whenever i drag the list, the grid behind the scrollview moves aswell. The Canvas and the Grid have different Layers but i still can't comprehend why its happening. Can anyone help me or point me towards the right direction?
Your answer
Follow this Question
Related Questions
Why doesn't childing a gameobject to GridLayoutGroup at runtime align it properly? 1 Answer
Adding a string to grid layout group 1 Answer
Movement in Scroll View 0 Answers
Making Selectable UI Grid objects 0 Answers
When I deleted an UI obj. in a cell, I want an empty cell. How can I do this? 0 Answers