Create an animated tile
To create a tile that plays an animation of different sprites, create an animated tile asset. Follow these steps:
- In the Project window, right-click and select Create > 2D > Tiles > Animated Tile.
- Select Lock () at the top of the Inspector window to keep the Animated Tile Inspector window open.
- Select multiple sprites from the Project window and drag them to the Inspector window. Each sprite becomes a frame of animation.
- To paint the tile into the Scene view, drag the tile asset onto a tile palette.
The animation plays only when you enter Play mode.
Properties
| Property | Description |
|---|---|
| Number of Animated Sprites | Sets the number of sprites the animation uses. |
| Sprite list | Displays the sprites Unity uses for the animation. Each sprite is a frame of animation, and Unity plays them in order. Use the following to edit the list:
|
| Minimum Speed | The minimum speed Unity sets for the animation, in frames per second. Unity randomly selects a speed between Minimum Speed and Maximum Speed. |
| Maximum Speed | The maximum speed Unity sets for the animation, in frames per second. |
| Start Time | Sets the initial time offset into the animation in seconds. |
| Start Frame | Sets the frame the animation starts with. |
| Collider Type | Sets the shape Unity uses to check for collisions with the tile. The options are:
|
| Flags | Customizes the animation. The options are:
|