Setting up a texture animation
Please follow the steps below to add a texture animation to your decal prefab.
Create a texture animation sheet in your programm of choice.
![](/images/assets/easy_decal/ed-animation-texture.png)
Create a new material in Unity and assign the recently created textures.
![](/images/assets/easy_decal/ed-mat-settings.jpg)
On your EasyDecal prefab set the Source Mode to Material and assign the material.
![](/images/assets/easy_decal/ed-material-setting.jpg)
Add a DecalAnimation script to the component stack and enter the dimensions (amount of single frames per row/column) of your animation sheet. Set the input texture names according to the used shader.
![](/images/assets/easy_decal/ed-animation-settings.jpg)
The animation will start automatically when the decal gets instantiated.