public bool Contains (Vector2Int position);

Parámetros

positionPosition to check.

Valor de retorno

bool Whether the position is within the RectInt.

Descripción

Returns true if the given position is within the RectInt.

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.

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961