Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: leegod on September 18, 2014, 08:03:19 PM
-
So like in this video,
http://youtu.be/WT1yPEUkdjo (http://youtu.be/WT1yPEUkdjo)
I have units in my list (says inventory), and I can drag some unit and drop to battle field.
So there is 9 spaces on battlefield.
How can I set some data (int value in this case for representing battle field position) to dragged item?
So if I move to 1 posiiton (top left position from 9 positions), I want to assign int value of 1 to that gameobject (ngui dropped item prefab gameobject)
Thanks.
-
You are the one who begins the drag operation inside your UIDragDropItem-derived class. You can keep whatever date you need inside it. Save whatever you need in OnDragDropStart().