# SnapAxis

> Defines the axes that can be snapped.

## Definition

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

```csharp
[Flags]
public enum SnapAxis : byte
```

## Fields

| Value                                                                | Description                                     |
| -------------------------------------------------------------------- | ----------------------------------------------- |
| [All](/engine/6000.0/script-reference/unityengine/snapaxis/all.md)   | Snapping is available on all axes: x, y, and z. |
| [None](/engine/6000.0/script-reference/unityengine/snapaxis/none.md) | No axes support snapping.                       |
| [X](/engine/6000.0/script-reference/unityengine/snapaxis/x.md)       | Snapping is available only on the \x\ axis.     |
| [Y](/engine/6000.0/script-reference/unityengine/snapaxis/y.md)       | Snapping is available only on the \y\ axis.     |
| [Z](/engine/6000.0/script-reference/unityengine/snapaxis/z.md)       | Snapping is available only on the \z\ axis.     |
