| Parameter | Description |
|---|---|
| other | The RectTransform whose world-space bounds to test against. |
bool
True if the world-space bounding box of this RectTransform fully contains the bounding box of other; false otherwise.
Checks whether the world-space bounding box of this RectTransform fully contains the world-space bounding box of another RectTransform.
Both bounding boxes are axis-aligned and are computed from the four world-space corners via GetWorldRect. Containment is inclusive on all edges, so a RectTransform returns true when tested against itself. Because world-space AABBs are used, a rotated element has an expanded bounding box; two visually overlapping elements may not satisfy containment if their AABBs differ.
Additional resources: GetWorldRect.