Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: yuewah on April 02, 2015, 04:41:37 AM

Title: UIEventTrigger Inspector is missing OnDragXXX, OnDrop
Post by: yuewah on April 02, 2015, 04:41:37 AM
Some OnDrag, OnDrop related is missing
Title: Re: UIEventTrigger Inspector is missing OnDragXXX, OnDrop
Post by: ArenMook on April 04, 2015, 03:48:19 AM
If you notice, UIEventTrigger doesn't pass any parameters to its functions. OnDrag and OnDrop both have parameters that they would need to pass. This is why they are not on the list.
Title: Re: UIEventTrigger Inspector is missing OnDragXXX, OnDrop
Post by: arkon3 on April 30, 2015, 08:34:42 PM
So how do we pass onDrag(delta) to another object?
Title: Re: UIEventTrigger Inspector is missing OnDragXXX, OnDrop
Post by: ArenMook on April 30, 2015, 08:37:49 PM
Don't use an event trigger. Write a script with OnDrag(Vector2 delta) function in it.