Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: doggan on January 20, 2014, 02:23:21 AM

Title: 3.0.9 f2 - Panel Clipping Issues
Post by: doggan on January 20, 2014, 02:23:21 AM
The following code that was added in 3.0.9 f2 in UIPanel.cs is causing weird clipping issues for me on some of my UIs. The panel has it's clipping set to None, but objects are still getting clipped.

  1. bool vis = forceVisible || (w.CalculateCumulativeAlpha(frame) > 0.001f && IsVisible(w));

Everything was working fine up to and including 3.0.9 f1, so I reverted the above code to the code below, and the problem was solved:

  1. bool vis = forceVisible ||
  2.         (mClipping == UIDrawCall.Clipping.None && !w.hideIfOffScreen) ||
  3.                 (w.CalculateCumulativeAlpha(frame) > 0.001f && IsVisible(w));

Is this a NGUI bug or is something not set up properly in my scene?

Thanks.
Title: Re: 3.0.9 f2 - Panel Clipping Issues
Post by: ArenMook on January 20, 2014, 03:44:12 AM
Probably best to make it:
  1. bool vis = forceVisible || (w.CalculateCumulativeAlpha(frame) > 0.001f &&
  2.         ((mClipping == UIDrawCall.Clipping.None && !w.hideIfOffScreen) || IsVisible(w)));