Using Decals in Unity
Objective:Give an idea of what decals are and how they can work.
Decals can be used in games to add some extra detail. Decals can be anything from graffiti to blood splatters or even bullet holes.
For this article I will be using blood splatters that I’ll download from FileBase.
Now that we have these decals downloaded, we can just drag into the scene.
We will have to verify how the decal is. As noticed above, we can’t see the decal. In the Inspector we have a little error.
We need to change the material type to HDRP/Decal. For decals to work their material will need to be set the same.
We can see the decal now!
The HDRP decal system prints the decal and maps it to the surfaces that it is displayed on. If it happens to go on an edge, the decal will match as needed.
Even round objects, the decal will mold to it.
You can also create your own by going into the hierarchy and right clicking, Rendering → Decal Projector.
There are some settings that be can adjusted. You can set the height and width of the projector. The depth of the project and the distance the decal will be drawn from the camera.
Decals can really help pull a scene together! Thanks for reading and have a wonderful day!