Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: DarthChimay on April 19, 2013, 06:13:03 PM

Title: DragDropItem Issues in Unity 4.1.2
Post by: DarthChimay on April 19, 2013, 06:13:03 PM
I'm running into a couple of issues when I try to create a DragDropItem as per Example 11.

1) In the example itself, when I drag an item, no small representation of it follows my mouse. It looks like it isn't working unless I let go over the block, where it properly places the prefab and removes the sprite from the container.

2) When I try to recreate the structure in my own scene, I constantly get the nested widgets error. I've created a panel with my DragDrop container childed to it, and then parented that container to a DragDropItem. So far, so good. When I try to create a child for that DragDropItem (a sprite), I get the nested widgets error, even though that is exactly what the example shows. Does the DragDropItem need a child in order to work properly (looking at the DragDropItem script, it seems to expect a child it can use as an icon)? Or can I add the UISprite component to the DragDropItem itself?

EDIT: I should add that I using the full version of NGUI with Unity 4.1.2.
Title: Re: DragDropItem Issues in Unity 4.1.2
Post by: ArenMook on April 19, 2013, 06:35:40 PM
Yup looks like there is some issue with that particular example on Unity 4. I'll look into it.
Title: Re: DragDropItem Issues in Unity 4.1.2
Post by: hong88 on May 23, 2013, 05:55:06 AM
May I know this problem is solve in version 2.6.1.e ?
Title: Re: DragDropItem Issues in Unity 4.1.2
Post by: ArenMook on May 23, 2013, 11:12:11 AM
I vaguely remember fixing it... Try it!