Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetAnimationFrame(Vector3Int)

Retrieves the current animation frame for a Tile at the given position.
Read time 1 minuteLast updated 5 days ago

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.