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

BoundsClipper Class

Extends MonoBehaviour, IBoundsClipper
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

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.
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.

Member Functions

Implementation of IBoundsClipper.GetLocalBounds(Transform, out Bounds); for details, please refer to the related documentation provided for that property.
Parameters
localTo
bounds
Returns
Did you find this page helpful?