ドキュメント

Unity Engine

Unity Engine

GetAnimationFrame(Vector3Int)

Retrieves the current animation frame for a Tile at the given position.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

public int GetAnimationFrame(Vector3Int position)

Parameters

position

Grid cell position.

Returns

Type

Description

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