- Home /
Unity Grid Drag Implementation
Hello,
I'm stuck with my dragging implementation over a Grid and i'd love to hear some ideas that i could try to solve my problem.
In my Unity Project, i have a Grid and i use a Box Collider as Trigger for the Drag function (Using the OnMouseDrag()). The issue i'm facing is that i want to keep dragging when my mouse goes over UI but not start dragging when mouse is already over UI.
Do you have any ideas how to solve that problem?
This function will put all the colliders in that radius an array, then, use Vector3.Distance function to check the distance between you and each collider in the array. www.prepaidgiftbalance.com
I'm working in 2D. I have only one Box collider component in the grid that covers all of it. It's like a board game. Do you think there is a way to achieve what i want to do?
Your answer
![](https://koobas.hobune.stream/wayback/20220613060141im_/https://answers.unity.com/themes/thub/images/avi.jpg)