I want to be able to detect if a UI element is over a gameobject and return true if it is. I need it so that if any part of the UI element is touching the gameobject then it returns true.
I was originally using cursor position but that did not work as something the user can drag and drop the item to the gameobject position and it does not register.
This should return as true.
This should return as false.