SphereBoundsHandle
A compound handle to edit a sphere-shaped bounding volume in the Scene view.
Read time 1 minuteLast updated 10 days ago
Definition
- Type: Class
- Namespace: UnityEditor.IMGUI.Controls
- Assembly: UnityEditor.CoreModule
- Inherits from: PrimitiveBoundsHandle
public class SphereBoundsHandle : PrimitiveBoundsHandle
Remarks
A sphere volume is defined by only a SphereBoundsHandle.radius parameter, and so dragging a handle will always scale the volume uniformly.

2D and 3D SphereBoundsHandle in the Scene View.
Additional Resources: PrimitiveBoundsHandle.
Constructors
Constructor | Description |
|---|---|
| SphereBoundsHandle() | Create a new instance of the SphereBoundsHandle class. |
Properties
Property | Description |
|---|---|
| radius | Returns or specifies the radius of the sphere bounding volume. |
Methods
Method | Description |
|---|---|
| DrawWireframe | Draw a wireframe sphere for this instance. |
| OnHandleChanged | A callback for when a control handle was dragged in the Scene. |