Unity - Scripting API: TileAnimationFlags
enumeration
Success!
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
Submission failed
For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.
Description
Options for flags controlling behavior for a Tile Animation on a Tilemap.
Properties
| Property | Description |
|---|---|
| None | Sets no TileAnimationFlags and the Tile Animation will run normally. |
| LoopOnce | Loops the Tile Animation once, then stops on the last Sprite of the animation. |
| PauseAnimation | Pauses the Tile Animation, stopping it from running. |
| UpdatePhysics | Updates the Physics Shape in the TilemapCollider2D whenever the Tile Animation switches to the next Sprite in the animation. |
| UnscaledTime | When true, the unscaled time is used to run the Tile Animation. Otherwise, the scaled time is used to run the Tile Animation. |
| SyncAnimation | When set, this will sync the start time of this Tile Animation with other Tile Animations that are the same. |