Scripting API

Bounds

struct in UnityEngine · UnityEngine.CoreModule

18 of 19 of Unity's membersUnity's documentation
In Tassix

Axis-aligned bounding box (center + extents). Contains is inclusive. Verified in conformance/recordings/value_types.jsonl.

Constructors 1

Bounds(Vector3 center, Vector3 size)
Bounds(in Vector3 center, in Vector3 size)

Properties 5

Vector3 center { get; set; }
Vector3 extents { get; set; }
Vector3 max { get; set; }
Vector3 min { get; set; }
Vector3 size { get; set; }

Methods 10

Vector3 ClosestPoint(Vector3 point)
Vector3 ClosestPoint(in Vector3 point)
bool Contains(Vector3 point)
bool Contains(in Vector3 point)
void Encapsulate(Vector3 point)
void Encapsulate(in Vector3 point)
void Encapsulate(Bounds bounds)
void Encapsulate(in Bounds bounds)
bool Equals(Bounds other)
bool Equals(in Bounds other)
bool Equals(object? other)
void Expand(float amount)
void Expand(Vector3 amount)
void Expand(in Vector3 amount)
int GetHashCode()
bool Intersects(Bounds bounds)
bool Intersects(in Bounds bounds)
void SetMinMax(Vector3 min, Vector3 max)
void SetMinMax(in Vector3 min, in Vector3 max)
float SqrDistance(Vector3 point)
float SqrDistance(in Vector3 point)
string ToString()
string ToString(string? format)
string ToString(string? format, IFormatProvider? formatProvider)

Operators 2

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

Not in Tassix yet 1

IntersectRay