Author Topic: 3.7.0 (and 3.7.1) breaks hover reporting in World_3D  (Read 1902 times)

KeithT

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 55
    • View Profile
3.7.0 (and 3.7.1) breaks hover reporting in World_3D
« on: September 10, 2014, 03:53:59 AM »
Further to this: http://www.tasharen.com/forum/index.php?topic=10923.msg51056#msg51056

3.7.0 also added:

               Rigidbody rb = hoveredObject.GetComponentInParent<Rigidbody>();
               if (rb != null) hoveredObject = rb.gameObject;

in UICamera Raycast, which means that hover is no longer reported on objects within the hierarchy of an object with a rigidbody. This means if you have a complex object with different parts within it, hover now only reports the name of the top object, as you move the mouse around.

Can this be reverted to how it worked in NGUI 2 and NGUI 3 up to 3.6.8 please ?


ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: 3.7.0 (and 3.7.1) breaks hover reporting in World_3D
« Reply #1 on: September 11, 2014, 01:28:48 AM »
I have quite a few complex objects in Windward that have multiple colliders. I want events to go to one object -- the root object, not have to have listeners on all the colliders.

If you want events to go to colliders, just revert that line locally.