Hello Guest

Author Topic: Detecting when mouse is over any UI object  (Read 3102 times)

Vartib

  • Newbie
  • *
  • Posts: 21
    • View Profile
Detecting when mouse is over any UI object
« 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.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Detecting when mouse is over any UI object
« Reply #1 on: February 19, 2014, 10:21:08 am »
No there isn't. A raycast will work fine - that is precisely what UIManager does.