2D Toolkit Forum
2D Toolkit => Support => Topic started by: Vartib on February 19, 2014, 12:54:11 am
-
I'm trying to figure out the best way to detect when the mouse is over any UI object. My current thinking is to create a layer for UI bounding boxes and test if the mouse if a linecast at the mouse's position is colliding with anything that has that layer, but before I look into that I wanted to see if there's a built in way to test for this.
-
No there isn't. A raycast will work fine - that is precisely what UIManager does.