文档

Unity Engine

Unity Engine

SetAnimationTime(Vector3Int, float)

Sets the running animation time for a Tile at the given position.
阅读时间1 分钟最后更新于 1 个月前

Definition

public void SetAnimationTime(Vector3Int position, float time)

Parameters

position

The grid cell position.

time

The running animation time in seconds.

Remarks

Use this to set the running animation of a Tile at the given position to a particular frame of the animation or to synchronize the animation time between different Tiles.