Author Topic: How do you keep drag & drop UI items active after prefab is surfaced?  (Read 2724 times)

ddub

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 18
    • View Profile
Hi guys,

I'm using the DragDrop functions and have it all set up in my scene. However, after I drag the DragDropItem UI item onto the DragDrop surface & the prefab is initiated, my UI item button disappears.

Is there a way to keep the DragDrop UI item active and continuously spawn new clones of the prefab it's connected to? i.e. click & drag UI item onto surface & generate 3D model, click UI item again and drag UI item onto surface & generate duplicate 3D model, etc. etc.

Your help would be very appreciated!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: How do you keep drag & drop UI items active after prefab is surfaced?
« Reply #1 on: August 02, 2013, 03:27:17 PM »
Is there? Sure, use the drag & drop as an example to write a custom script. You will want to instantiate a new object and give it focus, as well as set UICamera.currentTouch.press and such for it.