文档

Unity Engine

Unity Engine

GetAnimationFrameCount(Vector3Int)

Retrieves the number of animation frames for a Tile at the given position.
阅读时间1 分钟最后更新于 1 个月前

Definition

public int GetAnimationFrameCount(Vector3Int position)

Parameters

position

Grid cell position.

Returns

Type

Description

intReturns 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.