Author Topic: isOverUI not working on Web Player.  (Read 2800 times)

Scryed

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 5
    • View Profile
isOverUI not working on Web Player.
« on: February 23, 2015, 08:38:11 AM »
I've ran into a problem with the 'isOverUI' function on Web Player. It seems that it never gets evaluated as true because the 'hoveredObject' isn't being set to the piece of UI the user is hitting.

We've actually been using this logic fine on our editor / iOS and android builds, the problem is on web player alone. As an aside, the camera's event type is set to UI_3D and we have tried running the project thru safari and chrome (suspected the issue was with NGUI raycast logic and found reports that raycasts on chrome could be a bit funny).

Thanks for any help guys :)

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: isOverUI not working on Web Player.
« Reply #1 on: February 24, 2015, 11:25:45 AM »
There is no difference between how hoveredObject is set in the Web Player and other platforms. Check the UICamera code. Are you on Unity 4.6.1+? It has been reported that Unity broke something related to screen resizes and collider positions in those versions.