Select your preferred scripting language. All code snippets will be displayed in this language.
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
Represents an axis aligned bounding box with all values as integers.
An axis-aligned bounding box, or AABB for short, is a box aligned with coordinate axes and fully enclosing some object. As the box is never rotated with respect to the axes, it can be defined by min and max points.
|allPositionsWithin||A BoundsInt.PositionCollection that contains all positions within the BoundsInt.|
|center||The center of the bounding box.|
|max||The maximal point of the box.|
|min||The minimal point of the box.|
|position||The position of the bounding box.|
|size||The total size of the box.|
|x||X value of the minimal point of the box.|
|xMax||The maximal x point of the box.|
|xMin||The minimal x point of the box.|
|y||Y value of the minimal point of the box.|
|yMax||The maximal y point of the box.|
|yMin||The minimal y point of the box.|
|z||Z value of the minimal point of the box.|
|zMax||The maximal z point of the box.|
|zMin||The minimal z point of the box.|
Did you find this page useful? Please give it a rating: