menu_bookDocumentation
Decal Component: Projected Surface Effects with Random Variety
The s&box Decal component draws decals in the game world. It supports multiple DecalDefinitions for random variety without extra code.
Setup
Add a Decal component to a GameObject. Define one or more DecalDefinition assets — when multiple are defined, one is chosen at random on spawn.Randomizing Properties
Certain properties support range-based randomization. For example, set rotation to a range of 0-360 and each spawned decal picks a random angle. This creates variety and avoids visible patterns without requiring code.Usage
Decals project onto surfaces within their volume. They're commonly used for:- Bullet holes and impact marks
- Blood splatters
- Graffiti and environmental storytelling
- Damage indicators on surfaces
Was this helpful?