How It Works

Box Projection

The component projects a box volume in your chosen direction (local or world space). Any geometry inside that volume is sampled to build a decal mesh that conforms to the surface. You can choose among 18 projection directions including diagonals to cover almost any placement scenario.

Visual Mesh + Physics Collider

From the same projection pass, Decal Collider creates a renderable mesh and a physics collider so visual feedback and gameplay collisions match by design. Mesh and collider quality can be tuned separately to balance fidelity and performance.

Alpha-Mask Trimming

When a decal texture has transparent areas, alpha mask trimming removes empty pixels from the resulting mesh and collider. This gives clean silhouettes and avoids oversized hitboxes.

Live Editing & Profiling

Edit, rotate, move, and preview in real time using scene handles. A built-in profiler displays triangle count, ray count, build time, and memory so you can validate cost before going to runtime.

Last updated