Skip to content

Bullet Decals Manager


The Bullet Decals Manager Script is used by the weapons to register bullet impact decals and prevent that the number of decals doesn’t exceed the maximum allowed. It also separates them to avoid overlapping (Z-fighting).

Editor Properties

Property Function
Max Decals Defines the maximum number of decals that can be generated on the scene.
Decal Separator Defines the minimum distance between two decals. (If the distance between two decals is less than the indicated value they will be merged into a single one)

Public Methods

Method Function
CreateBulletDecal Generates a bullet hole decal.
RegisterDecal Register a new decal and validate if it can be generated.
RemoveDecals Clear all decals generated in the scene.