Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: ddub on August 02, 2013, 01:52:49 AM

Title: How do you keep drag & drop UI items active after prefab is surfaced?
Post by: ddub on August 02, 2013, 01:52:49 AM
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!
Title: Re: How do you keep drag & drop UI items active after prefab is surfaced?
Post by: ArenMook 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.