GetAnimationFrame(Vector3Int)
Retrieves the current animation frame for a Tile at the given position.
Read time 1 minuteLast updated 5 days ago
Definition
- Type: Method
- Namespace: UnityEngine.Tilemaps
- Assembly: UnityEngine.TilemapModule
public int GetAnimationFrame(Vector3Int position)
Parameters
Grid cell position.
Returns
Type | Description |
|---|---|
| int | 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.