ドキュメント

Unity Engine

Unity Engine

Overlaps

RectInts overlap if each RectInt RectInt.Contains a shared point.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule

Overlaps(RectInt)

RectInts overlap if each RectInt RectInt.Contains a shared point.
public readonly bool Overlaps(RectInt other)

Parameters

other

Other rectangle to test overlapping with.

Returns

Type

Description

boolTrue if the other rectangle overlaps this one.

Overlaps(RectInt)

RectInts overlap if each RectInt RectInt.Contains a shared point.
public readonly bool Overlaps(in RectInt other)

Parameters

other

Other rectangle to test overlapping with.

Returns

Type

Description

boolTrue if the other rectangle overlaps this one.