Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: traderjoe on September 23, 2014, 08:57:09 PM
-
After upgrading to the newest version from 4 or 5 back I've noticed that UICamera.hoveredObject is never null so if it isn't over anything else it now reports UIRoot while previously it ignored UIRoot. I checked debug and last hit is also UIRoot if nothing else is hit.
All my widgets have panels so a panel isn't being added to the UIRoot and it reports only the UIRoot script in both debug and default inspector. Any other reason for UIRoot to always grab events?
-
If you don't set a fallThrough object, one is now set for you. It was needed for the new generic event delegates to work (UICamera.onClick etc). Change your (UICamera.hoveredObject == null) check to be (UICamera.hoveredObject == UICamera.fallThrough) instead.