Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Scryed on February 23, 2015, 08:38:11 AM

Title: isOverUI not working on Web Player.
Post by: Scryed 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 :)
Title: Re: isOverUI not working on Web Player.
Post by: ArenMook 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.