# Swizzle(CellSwizzle, Vector3)

> Swizzles the given position with the given swizzle order.

## Definition

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

```csharp
public static Vector3 Swizzle(GridLayout.CellSwizzle swizzle, Vector3 position)
```

### Parameters

**** (\[CellSwizzle]\(/engine/6000.7/script-reference/unityengine/gridlayout/cellswizzle)): Determines the rearrangement order for the swizzle.**** (\[Vector3]\(/engine/6000.7/script-reference/unityengine/vector3)): Position to swizzle.

### Returns

| Type                                                              | Description            |
| ----------------------------------------------------------------- | ---------------------- |
| [Vector3](/engine/6000.7/script-reference/unityengine/vector3.md) | The swizzled position. |

### Remarks

Additional Resources: [GridLayout.CellSwizzle](/engine/6000.7/script-reference/unityengine/gridlayout/cellswizzle.md)
