Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: pengyingh on January 07, 2013, 03:25:14 AM
-
In editor scence, clipping pink rect is larger than the real clipping region, i guess something wrong in Gizmos; ???
-
I thought that v2.2.7 was actually fixing this bug which was present in v2.2.6
-
this bug comes after the NGUI upgraded to 2.27, the clipping rect is just wrong shown in editor screen, i delete some code in UIPanel , it gets back to normal.
-
void OnDrawGizmos ()
{
//UIRoot root = NGUITools.FindInParents<UIRoot>(gameObject);
//float scale = (root != null && !root.automatic) ? root.manualHeight / mScreenHeight : 1f;
//size *= scale;
}
-
You need to wrap that section in "if (!clip)". I'll fix that in the next update.