Nez.Portable/Physics/Physics.cs
/// <summary>
/// gets all the colliders that fall within the specified rect
/// </summary>
/// <returns>the number of Colliders returned</returns>
/// <param name="rect">Rect.</param>
/// <param name="results">Results.</param>
/// <param name="layerMask">Layer mask.</param>
gets all the colliders that fall within the specified rect
gets all the colliders that fall within the specified rect
public static int overlapRectangleAll(ref RectangleF rect, Collider[] results, int layerMask = allLayers)
        {
            Assert.isFalse(
                results.Length == 0,
                "An empty results array was passed in. No results will ever be returned.");
            return _spatialHash.overlapRectangle(ref rect, results, layerMask);
        }
public static int overlapRectangleAll ( ref RectangleF rect , Collider [ ] results , int layerMask = allLayers ) { Assert . isFalse ( results . Length == 0 , " " ) ; return _spatialHash . overlapRectangle ( ref rect , results , layerMask ) ; }
gets all the colliders that fall within the specified rect
gets all the colliders that fall within the specified rect
the number of Colliders returned
the number of Colliders returned
RectangleF
ref
results
Collider[]
None
layerMask
int
None
rect
None