# SphereBoundsHandle

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

## Definition

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

```csharp
public class SphereBoundsHandle : PrimitiveBoundsHandle
```

## Remarks

A sphere volume is defined by only a [SphereBoundsHandle.radius](/engine/6000.7/script-reference/unityeditor/imgui/controls/sphereboundshandle/radius.md) parameter, and so dragging a handle will always scale the volume uniformly.

![SphereBoundsHandle (SphereBoundsHandle)](/api/media?file=/engine/6000.7/media/images/SphereBoundsHandle.png)

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

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

## Constructors

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

## Properties

| Property                                                                                          | Description                                                    |
| ------------------------------------------------------------------------------------------------- | -------------------------------------------------------------- |
| [radius](/engine/6000.7/script-reference/unityeditor/imgui/controls/sphereboundshandle/radius.md) | Returns or specifies the radius of the sphere bounding volume. |

## Methods

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

## Inheritance

**Inherited Members:**

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