Graffiti tag fades into the wall

Hi, this is my first post and i hope this is the right place for it. :slight_smile:
I wonder if you could help me with this project im working on, its really easy i guess.
But i just dont know how to do this because my lack of skills in unity.

I want my character to go upon a wall, and when im in the right place (box acts as a trigger perhaps?) when I press for example “F” it should fade in a graffiti piece with alpha masking.
Is it possible to set an animated GIF with masking? That would make it really realistic.

I read among shader library that decals can do it.
“Forexample, if you have a brick wall, you can tile the brick texture as the main texture, and use thedecal texture with alpha channel to draw graffiti at different places on the wall.”

I have searched around on the forum but did not find it, only topics of bullet holes and stuff.
I hope you understand, my english is not very good.
Best regards
// Rookieass Swedish

The problem with decals (I think) is that you place a full sized texture on a wall and all you want is a small piece covered. So I would rather place a plane, attach a material and set the texture of that material to the graffiti you want. Doing it this way make your animated idea also more viable with regards to performance. For that, you will need to write a small script that uses texture offset to animate through your animation reel.

HJope I’m making sense…

Thanks!
what scripting language is best for that?

You can´t really use animated gifs but you could use a 2d sprite sheet.
Look around for sprites and you might find some ideas, then take a look under the hood of how the bullet hole decals stuff works, that should get you going.

So essentially what hummeboi is saying is that the sprite sheet you are using will probably be png image. Any language will work, I prefer c#.