Tile animation in Unity
Objective: Create an animated tile in Unity 2D
Animated tiles require 2D Tilemap Extras, which requires Enabled Preview Packages to be checked within Project Settings for Package Manager, see below.
Now open the package manager and search for 2D Tilemap Extras. Install the preview package shown below.
Create a folder, Waterfall, inside the Tiles folder as shown below. Right click on the waterfall folder and add select 2D > Tiles > Animated Tiles, which is now available, naming the animated tile Left_Waterfall.
Select Left_Waterfall and lock it in the inspector window. Open the sprites for the waterfall animation and drag them into the Left_Waterfall animated tile, as shown below. Repeat this process to create animated tiles for Center_Waterfall and Right_Waterfall. If a folder contains only the sprites for the animation, the folder can be dragged into animation input box in the inspector, saving a few steps.
Now create new pallet called Waterfalls and save it in the Tilemap > Palettes folder. Drag the new animated waterfall tiles into the the new pallet and edit the palette to position the waterfalls in order.
Now paint your waterfall using the paint brush tool. You can adjust the water color and transparency too, as shown below.
By carefully selecting your tilemap layers, an aesthetically pleasing seen can be created for the game.