기술 자료

Unity Engine

Unity Engine

GetAnimationFrame(Vector3Int)

Retrieves the current animation frame for a Tile at the given position.
읽는 시간 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.