Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started 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?
-
SpringPanel works in local coordinates and accepts an offset value. Look at what UICenterOnChild does.