Author Topic: DragDropItem Issues in Unity 4.1.2  (Read 3541 times)

DarthChimay

  • Guest
DragDropItem Issues in Unity 4.1.2
« 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.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: DragDropItem Issues in Unity 4.1.2
« Reply #1 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.

hong88

  • Guest
Re: DragDropItem Issues in Unity 4.1.2
« Reply #2 on: May 23, 2013, 05:55:06 AM »
May I know this problem is solve in version 2.6.1.e ?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: DragDropItem Issues in Unity 4.1.2
« Reply #3 on: May 23, 2013, 11:12:11 AM »
I vaguely remember fixing it... Try it!