Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: xerx on May 30, 2013, 02:02:39 AM

Title: UIDraggablePanel
Post by: xerx on May 30, 2013, 02:02:39 AM
Hi,

Is there a way i can simulate a swipe from within a code and not just by drag ?
i want to be able to set the draggable panel position manually,by script.

please let me know how can i do it.

Thanks
Title: Re: UIDraggablePanel
Post by: ArenMook on May 30, 2013, 03:04:00 PM
Useful stuff sticky, skyrim UI.
Title: Re: UIDraggablePanel
Post by: wizardsmoke on May 30, 2013, 08:37:20 PM
Use SpringPanel.  For example:

  1. SpringPanel.Begin(gameObject, transform.localPosition + offset, springStrength);
  2.  

SpringPanel moves the panel while adjusting the clipping such that the clipping stays in the same world position.  Hope this helps.  ;)