Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetAnimationFrameCount(Vector3Int)

Retrieves the number of animation frames for a Tile at the given position.
Read time 1 minuteLast updated 6 days ago

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.