# cellSwizzle

> Cell swizzle order that the grid applies when converting cell positions to local space.

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine](/engine/6000.5/script-reference/unityengine.md)
* **Assembly:** UnityEngine.GridModule

```csharp
public GridLayout.CellSwizzle cellSwizzle { get; set; }
```

### Remarks

Swizzling reorders the cell axes. The default [GridLayout.CellSwizzle.XYZ](/engine/6000.5/script-reference/unityengine/gridlayout/cellswizzle/xyz.md) keeps cell X, Y, and Z mapped to local X, Y, and Z. [GridLayout.CellSwizzle.XZY](/engine/6000.5/script-reference/unityengine/gridlayout/cellswizzle/xzy.md) swaps the Y and Z axes, which is useful for placing a 2D grid on the XZ ground plane of a 3D scene. See [GridLayout.CellSwizzle](/engine/6000.5/script-reference/unityengine/gridlayout/cellswizzle.md) for all available orders.
