API reference

BoundsClipper Class

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

Properties

Position : Vector3
[Get][Set]
Signature
Vector3 Oculus.Interaction.Surfaces.BoundsClipper.Position
Size : Vector3
[Get][Set]
Signature
Vector3 Oculus.Interaction.Surfaces.BoundsClipper.Size

Methods

GetLocalBounds ( localTo , bounds )
Attempts to retrieve the bounding box corresponding to the allowed region of the clipped surface
Signature
bool Oculus.Interaction.Surfaces.BoundsClipper.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