16
NGUI 3 Support / Event forwarding
« on: August 29, 2013, 04:48:09 PM »
I'm struggling with how to forward events to their targeted game object from a FallthruEventHandler attached to my main 3D UICamera. I've successfully implemented the handler that gives me a copy of all UICamera events except those that go to my Gui layer (handled by a separate 2D UICamera on that layer). The main UICamera's EventReceiverMask is set to nothing like you did in Windward. I can see them arriving just like you said. What I can't figure out is which game objects they should be forwarded too and how to do it. UICamera.hoveredObject always points to the FallthruEventHandler which makes sense as there never was a hit on a gameObject collider, due to the eventMask. Without a hit on the game object being recorded in hoveredObject, how do you know who you were attempting to talk too?
I expect the answer will cause me to be , but I'm at the point where I have to ask. What am I missing?
I expect the answer will cause me to be , but I'm at the point where I have to ask. What am I missing?