# IsAxisEnabled

> Gets a value indicating whether the specified axis is enabled for the current instance.

## Definition

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

## IsAxisEnabled(Axes)

Gets a value indicating whether the specified axis is enabled for the current instance.

```csharp
protected bool IsAxisEnabled(PrimitiveBoundsHandle.Axes axis)
```

### Parameters

**** (\[Axes]\(/engine/6000.7/script-reference/unityeditor/imgui/controls/primitiveboundshandle/axes)): An [PrimitiveBoundsHandle.Axes](/engine/6000.7/script-reference/unityeditor/imgui/controls/primitiveboundshandle/axes.md).

### Returns

| Type                                                          | Description                                                  |
| ------------------------------------------------------------- | ------------------------------------------------------------ |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | `true` if the specified axis is enabled; otherwise, `false`. |

### Remarks

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

## IsAxisEnabled(int)

Gets a value indicating whether the specified axis is enabled for the current instance.

```csharp
protected bool IsAxisEnabled(int vector3Axis)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): An integer corresponding to an axis on a [Vector3](/engine/6000.7/script-reference/unityengine/vector3.md). For example, `0` is x, `1` is y, and `2` is z.

### Returns

| Type                                                          | Description                                                  |
| ------------------------------------------------------------- | ------------------------------------------------------------ |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | `true` if the specified axis is enabled; otherwise, `false`. |

### Remarks

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