1
NGUI 3 Support / Re: Upgrading to 3x....Did I miss the first step?
« on: November 12, 2013, 04:06:40 PM »
OK. Thanks for the reply. If nothing moved than I can always install to a clean project and do a directory diff.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
First of all, before importing either of the packages, always follow the first
two steps of the upgrade process:
1. Start a new scene.
2. Delete the Examples, Resources, and Scripts folders within the NGUI folder.
NGUIMath.CalculateRelativeWidgetBounds(panelTransform, widgetTransform) tells you the bounds of the widget (you can also specify a game object, and all the widgets underneath it will be summed up). Knowing this, it's a simple matter of checking against panel's clipRange. UIPanel does this for ConstrainTargetToBounds, for example.