コード例 #1
0
ファイル: UIPanel.cs プロジェクト: sknchan/LegacyRust
 internal bool InsideClippingRect(Ray ray, int traceID)
 {
     if (this.clipping == UIDrawCall.Clipping.None)
     {
         return(true);
     }
     if (traceID != this.traceID || ray.origin != this.lastRayTrace.origin || ray.direction != this.lastRayTrace.direction)
     {
         this.traceID            = traceID;
         this.lastRayTrace       = ray;
         this.lastRayTraceInside = UIPanel.CheckRayEnterClippingRect(ray, base.transform, this.clipRange);
     }
     return(this.lastRayTraceInside);
 }