Nez.Portable/Physics/Physics.cs
/// <summary>
/// check if any collider falls within a rectangular area
/// </summary>
/// <returns>The rectangle.</returns>
/// <param name="rect">Rect.</param>
/// <param name="layerMask">Layer mask.</param>
check if any collider falls within a rectangular area
check if any collider falls within a rectangular area
public static Collider overlapRectangle(ref RectangleF rect, int layerMask = allLayers)
        {
            _colliderArray[0] = null;
            _spatialHash.overlapRectangle(ref rect, _colliderArray, layerMask);
            return _colliderArray[0];
        }
public static Collider overlapRectangle ( ref RectangleF rect , int layerMask = allLayers ) { _colliderArray [ 0 ] = null ; _spatialHash . overlapRectangle ( ref rect , _colliderArray , layerMask ) ; return _colliderArray [ 0 ] ; }
check if any collider falls within a rectangular area
check if any collider falls within a rectangular area
None
RectangleF
ref
layerMask
int
None
rect
None