GetAnimationFrameCount(Vector3Int)
Retrieves the number of animation frames for a Tile at the given position.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Method
- Namespace: UnityEngine.Tilemaps
- Assembly: UnityEngine.TilemapModule
public int GetAnimationFrameCount(Vector3Int position)
Parameters
Grid cell position.
Returns
Type | Description |
|---|---|
| int | Returns the number of animation frames. Returns 0 when there is no animation for the Tile at the given position. |
Remarks
Returns 0 if there is no animation for a Tile at the given position.