Version: 2023.1

Tilemap.GetAnimationFrameCount

切换到手册
public int GetAnimationFrameCount (Vector3Int position);

参数

position 网格单元格位置。

返回

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

描述

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.