This version of Unity is unsupported.

BoundsInt.Contains

Declaration

public bool Contains(Vector3Int position);

Parameters

position Point to check.

Returns

bool Is point contained in the bounding box?

Description

Is point contained in the bounding box?

A point is contained in the bounding box if its x, y and z components are greater or equal to BoundsInt.xMin, BoundsInt.yMin and BoundsInt.zMin respectively, and less than BoundsInt.xMax, BoundsInt.yMax and BoundsInt.zMax respectively.