Using Decals in Unity

Theme of the day, how to create a decal on Unity.
Let’s start by explaining what a decal is. A decal is a texture that is applied to a material as if it were an adhesive. Its peculiarity is that it can adapt to a surface.

To create a decal we need a few things, and a few simple steps to follow.
- First we need a texture, in my case I looked for the batman logo. Let’s import it into Unity and make it a sprite.

- Second step we are going to crare a material and modify its shader so that sie HDRP/Decal

Create a new material
modifies its shader field

- The last step we have to create a decal projection in the scene and assign the material to it.

Create a new Decal Projector in the scene
Add the material in its field

Now we just need to place it in front of an object and we are done.

I hope you found this helpful article.
See you in the next article🚀.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Andrea Alicino

Andrea Alicino

38 Followers

Unity developer and C# programmer. Currently looking for games industry employment.