Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: sk1989 on October 02, 2012, 11:41:17 PM

Title: springPanel position calculator
Post by: sk1989 on October 02, 2012, 11:41:17 PM
Vector3 newpos = panel.transform.worldToLocalMatrix.MultiplyPoint3x4(this.transform.position);
SpringPanel.Begin(panel.gameObject,newpos,8.0f);


I want to set an offset to the newPos and springPanel to that position.

I tried doing newPos += new vector3(0,10,0);

this is isnt working, why?

Title: Re: springPanel position calculator
Post by: ArenMook on October 03, 2012, 12:55:52 AM
SpringPanel works in local coordinates and accepts an offset value. Look at what UICenterOnChild does.