Scripting API

BoundsInt

struct in UnityEngine · UnityEngine.CoreModule

24 of 24 of Unity's membersUnity's documentation
In Tassix

An integer box: position and size, min inclusive and max exclusive.

Constructors 1

BoundsInt(int xMin, int yMin, int zMin, int sizeX, int sizeY, int sizeZ)
BoundsInt(Vector3Int position, Vector3Int size)
BoundsInt(in Vector3Int position, in Vector3Int size)

Properties 15

PositionEnumerator allPositionsWithin { get; }
Vector3 center { get; }
Vector3Int max { get; set; }
Vector3Int min { get; set; }
Vector3Int position { get; set; }
Vector3Int size { get; set; }
int x { get; set; }
int xMax { get; set; }
int xMin { get; set; }
int y { get; set; }
int yMax { get; set; }
int yMin { get; set; }
int z { get; set; }
int zMax { get; set; }
int zMin { get; set; }

Methods 6

void ClampToBounds(BoundsInt bounds)
void ClampToBounds(in BoundsInt bounds)
bool Contains(Vector3Int position)
bool Contains(in Vector3Int position)
bool Equals(BoundsInt other)
bool Equals(in BoundsInt other)
bool Equals(object? other)
int GetHashCode()
void SetMinMax(Vector3Int minPosition, Vector3Int maxPosition)
void SetMinMax(in Vector3Int minPosition, in Vector3Int maxPosition)
string ToString()
string ToString(string? format)
string ToString(string? format, IFormatProvider? formatProvider)

Operators 2

static bool operator !=(BoundsInt lhs, BoundsInt rhs)
static bool operator ==(BoundsInt lhs, BoundsInt rhs)