API reference

BoundsClipper Class

Extends MonoBehaviour
Implements IBoundsClipper
Clips a <cref"PlaneSurface" />.
Each BoundsClipper represents a bounding box, similar to Unity’s BoxCollider.

Properties

Position : Vector3
[Get][Set]
Signature
Vector3 Position
Size : Vector3
[Get][Set]
Signature
Vector3 Size

Methods

GetLocalBounds ( localTo , bounds )
Attempts to retrieve the bounding box corresponding to the allowed region of the clipped surface.
Signature
bool GetLocalBounds(Transform localTo, out Bounds bounds)
Parameters
localTo: Transform  The transform defining the space in which the returned bounds should be expressed
bounds: out Bounds  The bounding box, expressed in the local space defined by localTo
Returns
bool  True if clipping should be performed, false otherwise