Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Overlaps(RectInt)

RectInts overlap if each RectInt RectInt.Contains a shared point.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public bool Overlaps(RectInt other)

Parameters

other

Other rectangle to test overlapping with.

Returns

Type

Description

boolTrue if the other rectangle overlaps this one.