Unity - Scripting API: RectUtils
Experimental: this API is experimental and might be changed or removed in the future.
class in UnityEditor.Experimental.GraphView
Success!
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
Submission failed
For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.
Description
Utilities for rectangle selections.
Constructors
| Constructor | Description |
|---|---|
| RectUtils | RectUtils' constructor. |
Static Methods
| Method | Description |
|---|---|
| Encompass | Create rectangle that encompasses two rectangles. |
| Inflate | Creates and returns an enlarged copy of the specified rectangle. The copy is enlarged by the specified amounts. |
| IntersectsSegment | Check if a line segment overlaps a rectangle. |