# CapsuleBoundsHandle

> A compound handle to edit a capsule-shaped bounding volume in the Scene view.

## Definition

* **Type:** Class
* **Namespace:** [UnityEditor.IMGUI.Controls](/engine/6000.6/script-reference/unityeditor/imgui/controls.md)
* **Assembly:** UnityEditor.CoreModule
* **Inherits from:** [PrimitiveBoundsHandle](/engine/6000.6/script-reference/unityeditor/imgui/controls/primitiveboundshandle.md)

```csharp
public class CapsuleBoundsHandle : PrimitiveBoundsHandle
```

## Remarks

A capsule volume is defined by two parameters. The [CapsuleBoundsHandle.height](/engine/6000.6/script-reference/unityeditor/imgui/controls/capsuleboundshandle/height.md) specifies the upper and lower bounds along the [CapsuleBoundsHandle.heightAxis](/engine/6000.6/script-reference/unityeditor/imgui/controls/capsuleboundshandle/heightaxis-1.md), while the [CapsuleBoundsHandle.radius](/engine/6000.6/script-reference/unityeditor/imgui/controls/capsuleboundshandle/radius.md) specifies the radius of the capsule's cross section between the upper and lower points on its height axis.

![CapsuleBoundsHandle (CapsuleBoundsHandle)](/api/media?file=/engine/6000.6/media/images/CapsuleBoundsHandle.png)

*2D and 3D CapsuleBoundsHandle in the Scene View.*

Additional Resources: [PrimitiveBoundsHandle](/engine/6000.6/script-reference/unityeditor/imgui/controls/primitiveboundshandle.md).

## Constructors

| Constructor                                                                                                     | Description                                                                                                                                  |
| --------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- |
| [CapsuleBoundsHandle()](/engine/6000.6/script-reference/unityeditor/imgui/controls/capsuleboundshandle/ctor.md) | Create a new instance of the [CapsuleBoundsHandle](/engine/6000.6/script-reference/unityeditor/imgui/controls/capsuleboundshandle.md) class. |

## Properties

| Property                                                                                                     | Description                                                                                                                                                                                                                                                                                                                                      |
| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| [height](/engine/6000.6/script-reference/unityeditor/imgui/controls/capsuleboundshandle/height.md)           | Returns or specifies the height of the capsule bounding volume.                                                                                                                                                                                                                                                                                  |
| [heightAxis](/engine/6000.6/script-reference/unityeditor/imgui/controls/capsuleboundshandle/heightaxis-1.md) | Returns or specifies the axis in the handle's space to which [CapsuleBoundsHandle.height](/engine/6000.6/script-reference/unityeditor/imgui/controls/capsuleboundshandle/height.md) maps. The [CapsuleBoundsHandle.radius](/engine/6000.6/script-reference/unityeditor/imgui/controls/capsuleboundshandle/radius.md) maps to the remaining axes. |
| [radius](/engine/6000.6/script-reference/unityeditor/imgui/controls/capsuleboundshandle/radius.md)           | Returns or specifies the radius of the capsule bounding volume.                                                                                                                                                                                                                                                                                  |

## Methods

| Method                                                                                                               | Description                                                    |
| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------- |
| [DrawWireframe](/engine/6000.6/script-reference/unityeditor/imgui/controls/capsuleboundshandle/drawwireframe.md)     | Draw a wireframe capsule for this instance.                    |
| [OnHandleChanged](/engine/6000.6/script-reference/unityeditor/imgui/controls/capsuleboundshandle/onhandlechanged.md) | A callback for when a control handle was dragged in the Scene. |

## Enums

| Enum                                                                                                                           | Description                                                                                                                                                                                                                                                                                                 |
| ------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [CapsuleBoundsHandle.HeightAxis](/engine/6000.6/script-reference/unityeditor/imgui/controls/capsuleboundshandle/heightaxis.md) | An enumeration for specifying which axis on a [CapsuleBoundsHandle](/engine/6000.6/script-reference/unityeditor/imgui/controls/capsuleboundshandle.md) object maps to the [CapsuleBoundsHandle.height](/engine/6000.6/script-reference/unityeditor/imgui/controls/capsuleboundshandle/height.md) parameter. |

## Inheritance

**Inherited Members:**

* [PrimitiveBoundsHandle.DefaultMidpointHandleSizeFunction(Vector3)](/engine/6000.6/script-reference/unityeditor/imgui/controls/primitiveboundshandle/defaultmidpointhandlesizefunction.md)
* [PrimitiveBoundsHandle.SetColor(Color)](/engine/6000.6/script-reference/unityeditor/imgui/controls/primitiveboundshandle/setcolor.md)
* [PrimitiveBoundsHandle.DrawHandle()](/engine/6000.6/script-reference/unityeditor/imgui/controls/primitiveboundshandle/drawhandle.md)
* [PrimitiveBoundsHandle.GetSize()](/engine/6000.6/script-reference/unityeditor/imgui/controls/primitiveboundshandle/getsize.md)
* [PrimitiveBoundsHandle.SetSize(Vector3)](/engine/6000.6/script-reference/unityeditor/imgui/controls/primitiveboundshandle/setsize.md)
* [PrimitiveBoundsHandle.IsAxisEnabled(Axes)](/engine/6000.6/script-reference/unityeditor/imgui/controls/primitiveboundshandle/isaxisenabled.md#isaxisenabled\(axes\))
* [PrimitiveBoundsHandle.IsAxisEnabled(int)](/engine/6000.6/script-reference/unityeditor/imgui/controls/primitiveboundshandle/isaxisenabled.md#isaxisenabled\(int\))
* [PrimitiveBoundsHandle.center](/engine/6000.6/script-reference/unityeditor/imgui/controls/primitiveboundshandle/center.md)
* [PrimitiveBoundsHandle.axes](/engine/6000.6/script-reference/unityeditor/imgui/controls/primitiveboundshandle/axes-1.md)
* [PrimitiveBoundsHandle.handleColor](/engine/6000.6/script-reference/unityeditor/imgui/controls/primitiveboundshandle/handlecolor.md)
* [PrimitiveBoundsHandle.wireframeColor](/engine/6000.6/script-reference/unityeditor/imgui/controls/primitiveboundshandle/wireframecolor.md)
* [PrimitiveBoundsHandle.midpointHandleDrawFunction](/engine/6000.6/script-reference/unityeditor/imgui/controls/primitiveboundshandle/midpointhandledrawfunction.md)
* [PrimitiveBoundsHandle.midpointHandleSizeFunction](/engine/6000.6/script-reference/unityeditor/imgui/controls/primitiveboundshandle/midpointhandlesizefunction.md)
