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

BoundsClipper Class

Extends MonoBehaviour
Implementation of IBoundsClipper specifically for use in ClippedPlaneSurface.
Instances of this class encapsulate the "clipping" (comparable to a "crop" operation in image editing) to be applied to an ISurface in order to constrain it.

Properties

Position : Vector3
[Get][Set]
The offset of the bounding box center relative to the transform origin of the surface to be clipped, in the local space of the surface.
This is used with Size to "clip" large (often infinite) surfaces to specific positioned regions; for the canonical example usage, see ClippedPlaneSurface.
Signature
Vector3 Oculus.Interaction.Surfaces.BoundsClipper.Position
Size : Vector3
[Get][Set]
The size of the bounding box, in the local space of the surface.
This is used with Position to "clip" large (often infinite) surfaces to specific regions; for the canonical example usage, see ClippedPlaneSurface.
Signature
Vector3 Oculus.Interaction.Surfaces.BoundsClipper.Size

Methods

GetLocalBounds ( localTo , bounds )
Implementation of IBoundsClipper.GetLocalBounds(Transform, out Bounds); for details, please refer to the related documentation provided for that property.
Signature
bool Oculus.Interaction.Surfaces.BoundsClipper.GetLocalBounds(Transform localTo, out Bounds bounds)
Parameters
localTo: Transform
bounds: out Bounds
Returns
bool