Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Sahkan on March 03, 2016, 01:50:02 AM

Title: Is there a way to make dragging operation move to an other object while draggin?
Post by: Sahkan on March 03, 2016, 01:50:02 AM
I want to have an object created when I'm start dragging from a certain object.
When the object created it should be dragged instead of the object that was initially clicked.
How can I make it happen?
Title: Re: Is there a way to make dragging operation move to an other object while draggin?
Post by: ArenMook on March 06, 2016, 12:52:07 PM
Set UIDragDropItem.cloneOnDrag to true. You can also overwrite UIDragDropItem's StartDragging() function in a derived class and specify exactly what gets created and when. Examine UIDragDropItem.StartDragging for more details.