struct in UnityEngine
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.Close
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.Close
A 2D Rectangle defined by x, y, width, height with integers.
|A RectInt.PositionCollection that contains all positions within the RectInt.
|Center coordinate of the rectangle.
|Height of the rectangle.
|The upper right corner of the rectangle; which is the maximal position of the rectangle along the x- and y-axes, when it is aligned to both axes.
|The lower left corner of the rectangle; which is the minimal position of the rectangle along the x- and y-axes, when it is aligned to both axes.
|Returns the position (x, y) of the RectInt.
|Returns the width and height of the RectInt.
|Width of the rectangle.
|Left coordinate of the rectangle.
|Shows the maximum X value of the RectInt.
|Shows the minimum X value of the RectInt.
|Top coordinate of the rectangle.
|Shows the maximum Y value of the RectInt.
|Show the minimum Y value of the RectInt.
|Clamps the position and size of the RectInt to the given bounds.
|Returns true if the given position is within the RectInt.
|Returns true if the given RectInt is equal to this RectInt.
|RectInts overlap if each RectInt Contains a shared point.
|Sets the bounds to the min and max value of the rect.
|Returns the x, y, width and height of the RectInt.