Hi,
I bought NGUI 5 months ago, and I'm really happy with your continuous support and keep updating the plugin.
I'm developing a mobile game. I wonder is there any ready-made function in NGUI that will focusing on child item within the UIPanel
BUT limiting within its UIPanel clipping boundary.
What I mean, if the child is already at the end bottom of the UIPanel boundary, the focusing animation will only move the panel in X-coordinate
ONLY.
I search across this forum and found this code
Vector3 newPos = mPanel.transform.worldToLocalMatrix.MultiplyPoint3x4(transform.position);
SpringPanel.Begin(mPanel.gameObject, -newPos, 13f);
but the problem is, this code will makes the UIDraggable panel not staying within its boundary while focusing its child item
Is there any solution for this?
Thanks