Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: pengyingh on January 07, 2013, 03:25:14 AM

Title: UIPanel 's clipping region is not shown correctly in v2.27
Post 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; ???
Title: Re: UIPanel 's clipping region is not shown correctly in v2.27
Post by: Cripple on January 07, 2013, 04:05:30 AM
I thought that v2.2.7 was actually fixing this bug which was present in v2.2.6
Title: Re: UIPanel 's clipping region is not shown correctly in v2.27
Post by: pengyingh on January 07, 2013, 04:27:49 AM
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.
Title: Re: UIPanel 's clipping region is not shown correctly in v2.27
Post by: pengyingh on January 07, 2013, 04:36:34 AM
void OnDrawGizmos ()
{
//UIRoot root = NGUITools.FindInParents<UIRoot>(gameObject);
   //float scale = (root != null && !root.automatic) ? root.manualHeight / mScreenHeight : 1f;
   //size *= scale;

}
Title: Re: UIPanel 's clipping region is not shown correctly in v2.27
Post by: ArenMook on January 07, 2013, 09:14:19 AM
You need to wrap that section in "if (!clip)". I'll fix that in the next update.