Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - misterkeeter

Pages: [1]
1
Is there anyway to set an object to already be dragging when its spawned?  I create an object at the mousePosition on a click but I want it to act like a draggable item i have already picked up. The object already has a UIDragDropItem attached to it.
If I click on it again it works as expected but I'd like to set or fire OnPressed when I create it..

2
NGUI 3 Support / [Solved] Trouble Instantiating UI Objects.
« on: May 22, 2014, 09:40:47 PM »
This following code always creates the prefab at 0,0,0.
I'm not really sure why.

void Start ()
{
        GameObject New = Instantiate(instance, transform.localPosition , transform.localRotation)as GameObject;
   Vector3 pos = new Vector3 (-50f, -250f, 0f);
   New.gameObject.transform.position = pos;
}

Any Help is appreciated.

3
NGUI 3 Support / [SOLVED] OnRelease getting called after OnDragOut
« on: May 22, 2014, 03:48:25 PM »
I'm trying to drop an item on another item and call a function if they are on top of one another.  But when I call my function in OnRelease, OnDragOut is called on the object below before that and It wont accept the drop.

Any Advice?

Pages: [1]