Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: duncanx on November 18, 2013, 06:01:22 AM

Title: draggable panel start position
Post by: duncanx on November 18, 2013, 06:01:22 AM
Draggable window starting position

I'm using a draggable panel and the centeronchild together. I have figured out how to pass some index to centeronchild to have it spring to that position..but, I need the panel to start in a default position without springing to it.
Title: Re: draggable panel start position
Post by: ArenMook on November 18, 2013, 11:06:58 AM
CenterOnChild simply calls SpringPanel.Begin under the hood. You can make it instant by setting UICenterOnChild.springStrength to 1000.
Title: Re: draggable panel start position
Post by: duncanx on November 18, 2013, 09:09:21 PM
That works. Thanks.