Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: leegod on September 16, 2014, 01:38:39 AM
-
Using unity 4.5.4, ngui 3.7.2(newest)
I am making unit positioning UI, following NGUI Example 11 Drag&Drop scene.
So I made and set options followed ngui example, but as like this video, item dropping back does not work well.
http://youtu.be/-ThMXfxpxrs (http://youtu.be/-ThMXfxpxrs)
-
You are missing a UIGrid, I'm guessing. If the object is returned, and there is no UIGrid, then it won't be repositioned properly. And if you do have UIGrid, make sure it's set to proper sorting using vertical, not horizontal.
-
You are missing a UIGrid, I'm guessing. If the object is returned, and there is no UIGrid, then it won't be repositioned properly. And if you do have UIGrid, make sure it's set to proper sorting using vertical, not horizontal.
Yes I have UIGrid and set as vertical already,
my video's problem is, after item returning to right scrollview column, item's position does not fit well, and its child object label(green and red number at video)'s position also get tangled.
-
UIGrid doesn't tangle positions. If it was working properly then everything would be set in place, exactly like it works in the drag & drop example. My suggestion is have a closer look at what you're doing differently. You're likely not disabling something that ends up conflicting with the dragged object's behaviour. Just by looking at your video I can already tell that you didn't set up the extra UIDragDropRoot panel, because your dragged object ends up behind the scroll view.
-
Thx for reply. But problem still.
I made DragDropRoot gameobject same with ngui example11's. But same phenomenon.
I captured new video showing problem.
http://youtu.be/WT1yPEUkdjo (http://youtu.be/WT1yPEUkdjo)
As you can see in video, when come back to right side's scrollview, image portrait does not follow well, and after scrolling down and up again, all reset and shows well.
Shows not well from the first is problem.
Can you see yourself my whole project files? about 75mb after 7zip. I can send.
Thanks.
-
This solved.
I turned on [Static] option at UIPanel of right side's scrollview object.
After turning off it, item and its children sprites positioned well.
Thanks.