1
NGUI 3 Support / Re: Scrollview/UIGrid/Center on Child odd behavior when parent UIPanel is rotated
« on: December 15, 2014, 09:48:51 AM »
This worked for the panels at 0 and 180 rotations but not with panels rotated at 90 and 270. So what I did was just set a bool to switch between:
Vector2 totalDelta = UICamera.currentTouch.totalDelta; for 90 and 270 degrees
&
Vector3 totalDelta = UICamera.currentTouch.totalDelta; for 0 and 180;
totalDelta = transform.rotation * totalDelta;
Vector2 totalDelta = UICamera.currentTouch.totalDelta; for 90 and 270 degrees
&
Vector3 totalDelta = UICamera.currentTouch.totalDelta; for 0 and 180;
totalDelta = transform.rotation * totalDelta;
