# CellToLocalInterpolated(Vector3)

> Converts an interpolated cell position in floats to local position space.

## Definition

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

```csharp
public Vector3 CellToLocalInterpolated(Vector3 cellPosition)
```

### Parameters

**** (\[Vector3]\(/engine/6000.3/script-reference/unityengine/vector3)): Interpolated cell position to convert.

### Returns

| Type                                                              | Description                          |
| ----------------------------------------------------------------- | ------------------------------------ |
| [Vector3](/engine/6000.3/script-reference/unityengine/vector3.md) | Local position of the cell position. |

### Remarks

Returns the local position in floats.

### Examples

```csharp
// Snap the GameObject to parent GridLayout center of cell
using UnityEngine;

public class ExampleClass : MonoBehaviour
{
    void Start()
    {
        GridLayout gridLayout = transform.parent.GetComponent<GridLayout>();
        Vector3Int cellPosition = gridLayout.LocalToCell(transform.localPosition);
        transform.localPosition = gridLayout.CellToLocalInterpolated(cellPosition + new Vector3(.5f, .5f, .5f));
    }
}
```
