# Gizmos

> Gizmos are used to give visual debugging or setup aids in the Scene view.

## Definition

* **Type:** Class
* **Namespace:** [UnityEngine](/engine/6000.0/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public sealed class Gizmos
```

## Remarks

All gizmo drawing has to be done in either [MonoBehaviour.OnDrawGizmos()](/engine/6000.0/script-reference/unityengine/monobehaviour/ondrawgizmos.md) or [MonoBehaviour.OnDrawGizmosSelected()](/engine/6000.0/script-reference/unityengine/monobehaviour/ondrawgizmosselected.md) functions of the script. [MonoBehaviour.OnDrawGizmos()](/engine/6000.0/script-reference/unityengine/monobehaviour/ondrawgizmos.md) is called when the Scene view or Game view is repainted. All gizmos that render in [MonoBehaviour.OnDrawGizmos()](/engine/6000.0/script-reference/unityengine/monobehaviour/ondrawgizmos.md) are pickable. [MonoBehaviour.OnDrawGizmosSelected()](/engine/6000.0/script-reference/unityengine/monobehaviour/ondrawgizmosselected.md) is called only if the object the script is attached to is selected.

## Static Properties

| Property                                                                     | Description                                                                                                                                                                        |
| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [color](/engine/6000.0/script-reference/unityengine/gizmos/color.md)         | Sets the [Color](/engine/6000.0/script-reference/unityengine/color.md) of the gizmos that are drawn next.                                                                          |
| [exposure](/engine/6000.0/script-reference/unityengine/gizmos/exposure.md)   | Set a texture that contains the exposure correction for LightProbe gizmos. The value is sampled from the red channel in the middle of the texture.                                 |
| [matrix](/engine/6000.0/script-reference/unityengine/gizmos/matrix.md)       | Sets the [Matrix4x4](/engine/6000.0/script-reference/unityengine/matrix4x4.md) that the Unity Editor uses to draw [Gizmos](/engine/6000.0/script-reference/unityengine/gizmos.md). |
| [probeSize](/engine/6000.0/script-reference/unityengine/gizmos/probesize.md) | Set a scale for Light Probe gizmos. This scale will be used to render the spherical harmonic preview spheres.                                                                      |

## Static Methods

| Method                                                                                 | Description                                                                                                               |
| -------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- |
| [CalculateLOD](/engine/6000.0/script-reference/unityengine/gizmos/calculatelod.md)     | Determines the appropriate level of detail for a gizmo in the Scene view at a specified position with a specified radius. |
| [DrawCube](/engine/6000.0/script-reference/unityengine/gizmos/drawcube.md)             | Draw a solid box at center with size.                                                                                     |
| [DrawFrustum](/engine/6000.0/script-reference/unityengine/gizmos/drawfrustum.md)       | Draw a camera frustum using the currently set Gizmos.matrix for its location and rotation.                                |
| [DrawGUITexture](/engine/6000.0/script-reference/unityengine/gizmos/drawguitexture.md) | Draw a texture in the Scene.                                                                                              |
| [DrawIcon](/engine/6000.0/script-reference/unityengine/gizmos/drawicon.md)             | Draw an icon at a position in the Scene view.                                                                             |
| [DrawLine](/engine/6000.0/script-reference/unityengine/gizmos/drawline.md)             | Draws a line starting at from towards to.                                                                                 |
| [DrawLineList](/engine/6000.0/script-reference/unityengine/gizmos/drawlinelist.md)     | Draws multiple lines between pairs of points.                                                                             |
| [DrawLineStrip](/engine/6000.0/script-reference/unityengine/gizmos/drawlinestrip.md)   | Draws a line between each point in the supplied span.                                                                     |
| [DrawMesh](/engine/6000.0/script-reference/unityengine/gizmos/drawmesh.md)             | Draws a mesh.                                                                                                             |
| [DrawRay](/engine/6000.0/script-reference/unityengine/gizmos/drawray.md)               | Draws a ray starting at from to from + direction.                                                                         |
| [DrawSphere](/engine/6000.0/script-reference/unityengine/gizmos/drawsphere.md)         | Draws a solid sphere with center and radius.                                                                              |
| [DrawWireCube](/engine/6000.0/script-reference/unityengine/gizmos/drawwirecube.md)     | Draw a wireframe box with center and size.                                                                                |
| [DrawWireMesh](/engine/6000.0/script-reference/unityengine/gizmos/drawwiremesh.md)     | Draws a wireframe mesh.                                                                                                   |
| [DrawWireSphere](/engine/6000.0/script-reference/unityengine/gizmos/drawwiresphere.md) | Draws a wireframe sphere with center and radius.                                                                          |
