Contains(Vector2Int)
Returns true if the given position is within the RectInt.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
public bool Contains(Vector2Int position)
Parameters
Position to check.
Returns
Remarks
A point is considered to lie within the RectInt if its coordinates are greater than or equal to the RectInt's min coordinates, and less than the RectInt's max coordinates.