Tilemap.GetAnimationFrameCount

Declaration

public int GetAnimationFrameCount(Vector3Int position);

Parameters

position Grid cell position.

Returns

int Returns the number of animation frames. Returns 0 when there is no animation for the Tile at the given position.

Description

Retrieves the number of animation frames for a Tile at the given position.

Returns 0 if there is no animation for a Tile at the given position.


Did you find this page useful? Please give it a rating: