Version: 2019.2
public bool Contains (Vector2Int position);

Parameters

positionPosition to check.
inclusiveWhether the max limits are included in the check.

Returns

bool Whether the position is within the RectInt.

Description

Returns true if the given position is within the RectInt.