How to let another UI gameObject handle the drag event.

Hi.
When I start dragging from a UI GameObject, I need to deactivate that GameObject.
I found out that doing so stop the event too so I need to find a way to make another script handle the drag event instead so that I can deactivate the origin of the drag event.

Any idea ?

maybe create a child for that gameobject then move the UI from the parent to it so you can deactivate the child without stop the parent’s event?

2 Likes

thanks. That’s quite a clever trick.

You’re welcome.

I use it frequently. I often end up with the visual representation on a child or sibling game object of the logical object.