Author Topic: Drag and Drop (Noob Problem, Problems)  (Read 2085 times)

kallavun

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 4
    • View Profile
Drag and Drop (Noob Problem, Problems)
« on: September 24, 2014, 03:43:07 PM »
Hi all ngui users.
i am new to unity, ngui and English ;D

i have a problem about drag and drop. i searched for solutions but i cant find a solution. i don't know how to tell my problem clearly. so i draw it, sorry for that  :'(

Thanks already.

kallavun

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 4
    • View Profile
Re: Drag and Drop (Noob Problem, Problems)
« Reply #1 on: September 25, 2014, 07:22:29 AM »
Anyone? Pleas Help

kallavun

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 4
    • View Profile
Re: Drag and Drop (Noob Problem, Problems)
« Reply #2 on: September 25, 2014, 10:39:30 AM »
how to limit grid or container for one drop only?
« Last Edit: September 25, 2014, 11:17:45 AM by kallavun »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Drag and Drop (Noob Problem, Problems)
« Reply #3 on: September 25, 2014, 07:43:19 PM »
If you want to prevent drag & drop interaction, simply disable the collider or the drag & drop script itself.

kallavun

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 4
    • View Profile
Re: Drag and Drop (Noob Problem, Problems)
« Reply #4 on: September 26, 2014, 10:55:37 AM »
@ArenMook how can i disable collider after 5 drops? i will make a skill select screen, player can choose 5 skills.

and is there a method to know which item dropped to  grid or container?
« Last Edit: September 26, 2014, 11:04:07 AM by kallavun »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Drag and Drop (Noob Problem, Problems)
« Reply #5 on: September 27, 2014, 06:22:24 PM »
After 5 drops? You will need to write a script that will keep track of this.

"Method to know which item dropped to grid or container"? Not sure what you mean.