Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: ddub on November 22, 2014, 12:56:36 AM
-
Okay here's the issue:
- I have objects in a grid similar to the Drag Drop example scene; they're in a clipped scroll view with the ability to drag the icons horizontally to go through them.
- Those same icons have a Playmaker FSM that is listening for a 'Press Up' action that activates another object (which I only have there because I want that object to activate when the UI icon is dragged out to my DragDropSurface)
- Any time I press the icon object in the scroll view, it won't execute the NGUI dragging component in the scroll view (so no dragging left or right thru the scrollview), and only activates the gameobject that I want activated when you drag the object to DragDropSurface.
I'm trying to make it so the scroll view/UIDragScrollView script executes first, so if you drag the objects within that panel, it'll listen to that first. If you drag the object out of the panel to the DragDropSurface, it'll execute my playmaker FSM.
Any solutions to this?
-
All NGUI events go to the game object, meaning all scripts attached to that game object will receive them. There is no way to "block" events in one script from being received in another script. The only way to do it would be to ensure that only one script receives the event, and inside this script you may or may not execute a function on other scripts.