Hi,
I am having some trouble with starting the dragging process on a UIDragDropItem from another script. Here's the basic idea: I have a grid of objects (all UIDragDropitems) and above this grid I have an invisible UISprite with a collider which I want to use as a "Drag Panel" (to drag between pages, it uses an UIEventTrigger). What I want to do is, when the drag goes to either side, we start dragging the pages, but when I drag up, I want to drag the UIDragDropItem below.
The direction detection is done and working perfectly fine, but I can't start dragging the object. I've tried everything... I am also able to click the object behind the "Drag Panel" by disabling the "Drag Panel" and redoing the UICamera.Raycast and accessing it through UICamera.lastHit. This works flawlessly, but the dragging unfortunately I don't know how to tackle it.
I've tried:
- Changing the UICamera.selectedObject
- SendMessage("OnDragStart" / "OnPress" / "OnDragDropStart") on the UIDragDropItem
- Disabling the Drag Panel
Any ideas?
Thanks in advance.
- F