User Rating: 5 / 5

Star ActiveStar ActiveStar ActiveStar ActiveStar Active
 

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.

 

Create a new material in Unity and assign the recently created textures.

 

On your EasyDecal prefab set the Source Mode to Material and assign the material.

 

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.

 

The animation will start automatically when the decal gets instantiated.