# GetAnimationFrame(Vector3Int)

> Retrieves the current animation frame for a Tile at the given position.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.Tilemaps](/engine/6000.5/script-reference/unityengine/tilemaps.md)
* **Assembly:** UnityEngine.TilemapModule

```csharp
public int GetAnimationFrame(Vector3Int position)
```

### Parameters

**** (\[Vector3Int]\(/engine/6000.5/script-reference/unityengine/vector3int)): Grid cell position.

### Returns

| Type                                                       | Description                                                                                                    |
| ---------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- |
| [int](https://learn.microsoft.com/dotnet/api/system.int32) | Returns the current animation frame. Returns -1 when there is no animation for the Tile at the given position. |

### Remarks

This method returns the current animation frame for a Tile at the given position. If there is no animation for the Tile at the given position, then this returns -1.
