TileAnimationFlags
Options for flags controlling behavior for a Tile Animation on a Tilemap.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Enum
- Namespace: UnityEngine.Tilemaps
- Assembly: UnityEngine.TilemapModule
[Flags]public enum TileAnimationFlags
Fields
Value | Description |
|---|---|
| LoopOnce | Loops the Tile Animation once, then stops on the last Sprite of the animation. |
| None | Sets no TileAnimationFlags and the Tile Animation will run normally. |
| PauseAnimation | Pauses the Tile Animation, stopping it from running. |
| SyncAnimation | When set, this will sync the start time of this Tile Animation with other Tile Animations that are the same. |
| UnscaledTime | When true, the unscaled time is used to run the Tile Animation. Otherwise, the scaled time is used to run the Tile Animation. |
| UpdatePhysics | Updates the Physics Shape in the TilemapCollider2D whenever the Tile Animation switches to the next Sprite in the animation. |