Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


CapsuleBoundsHandle

A compound handle to edit a capsule-shaped bounding volume in the Scene view.
Read time 2 minutesLast updated 12 days ago

Definition

public class CapsuleBoundsHandle : PrimitiveBoundsHandle

Remarks

A capsule volume is defined by two parameters. The CapsuleBoundsHandle.height specifies the upper and lower bounds along the CapsuleBoundsHandle.heightAxis, while the CapsuleBoundsHandle.radius specifies the radius of the capsule's cross section between the upper and lower points on its height axis.
CapsuleBoundsHandle (CapsuleBoundsHandle)
2D and 3D CapsuleBoundsHandle in the Scene View.
Additional Resources: PrimitiveBoundsHandle.

Constructors

Constructor

Description

CapsuleBoundsHandle()Create a new instance of the CapsuleBoundsHandle class.

Properties

Property

Description

heightReturns or specifies the height of the capsule bounding volume.
heightAxisReturns or specifies the axis in the handle's space to which CapsuleBoundsHandle.height maps. The CapsuleBoundsHandle.radius maps to the remaining axes.
radiusReturns or specifies the radius of the capsule bounding volume.

Methods

Method

Description

DrawWireframeDraw a wireframe capsule for this instance.
OnHandleChangedA callback for when a control handle was dragged in the Scene.

Enums

Enum

Description

CapsuleBoundsHandle.HeightAxisAn enumeration for specifying which axis on a CapsuleBoundsHandle object maps to the CapsuleBoundsHandle.height parameter.

Inheritance