API reference
API reference
Select your platform
No SDKs available
No versions available

IBounds Interface

Indicates that a type exposes an axis-aligned bounding box called Bounds of the built-in Unity type of the same name.
Because of its limited applicability, you should avoid making new types which implement or consume this interface.
Contractually, this bounding box is specifically axis-aligned to world space, limiting its utility almost exclusively to culling optimizations in spatial arithmetic (for example, when raycasting against a CylinderSurface).

Properties

The world space axis-aligned bounding box (AABB).
As a fundamentally world space-aligned data type, these bounds are incapable of expressing precise spatial data and should only be leveraged for specialized optimizations. For an example usage, see Locomotion.TeleportInteractable.