Impact CFX Main Page Index API Reference Change Logs
Conversion From Legacy Impact
Impact CFX Project Settings Impact Tags Logging Impact Material Registry
Impact CFX Manager Material Mapping Managing Registered Materials
Impact Materials
Audio Effect Audio Source Prefab Audio Effect Processor Particle Effect Particle System Prefab Particle Effect Processor Decal Effect Decal Prefab Decal Effect Processor URP & HDRP Decals VFX Batch Effect VFX Batch Master Creating a Visual Effect VFX Batch Effect Processor Managing Attached Effects
Impact Objects Impact Object Single Material Impact Object Rigidbody Impact Object Rigidbody (Cheap) Impact Object Custom Velocity Objects With Multiple Materials Impact Terrain
Impact Triggers Common Trigger Properties Material Count Impact Collision Trigger Impact Slide and Roll Trigger Impact Speculative Collision Trigger Impact Simple Collision Trigger Impact Particle Collision Trigger Impact On Trigger Enter Impact On Trigger Stay
Impact Raycasting
FMOD Integration Wwise Integration Master Audio Integration
Custom Triggers Custom Objects Creating an Impact Object Script Impact Material Processors Custom Effects Impact Effect Authoring Asset Effect Result Effect Data Impact Effect Processors Impact Simple Effect Processor Impact Pooled Effect Processor Pooled Effect Object Pooled Effect Authoring Pooled Effect Result Pooled Effect Data Object Pool Pooled Effect Processor Add to Impact CFX Manager Example Effect Download

URP & HDRP Decals

The built-in Impact Decal component is very generic, and has no properties specific to any particular decal system. However, if you are using the URP or HDRP decal projectors included in the URP and HDRP render pipelines, you may want to leverage some of the features those decals provide. So, I have provided Impact Decal implementations for both the URP and HDRP decal projectors.

You can download the URP and HDRP Decal packages below.


URP and HDRP Decal Component

The URP and HDRP decals are replacements for the built-in Impact Decal, and are used in the exact same way. You can add them to a decal by going to Add Component > Impact CFX > Decal > Impact Decal (URP) or Add Component > Impact CFX > Decal > Impact Decal (HDRP).

In addition to the properties found on the base Impact Decal, both URP and HDRP decals have the following properties:

  • Decal Projector – The decal projector component attached to the decal.
  • Use Atlas – Allows the decal to randomly select a region to display from an atlas texture.
    • Atlas UV Region – The area of the texture to use, in UV coordinates.
    • Atlas Tiles – The number of tiles in the X and Y directions.
  • Fade Over Time – Allows the decal to fade away over time.
    • Life Time – How long the decal will be alive before it begins to fade, in seconds.
    • Fade Time – Once fading, how long the decal takes to fade away, in seconds.
    • Fade Curve – Curve for controlling the opacity fade. This should be in the 0 to 1 range for both the X and Y axes.

If Use Atlas is enabled, the scene view will display some guides that will help you make sure your region is in the correct spot with the correct number of tiles.

The red and white dashed line shows the border of the UV region, and the white dashed lines inside of the area show each tile.

So in this example, the decal will randomly select from the red, green, blue, and yellow circles.

Note that the material Tiling and Offset on the Decal Projector will be overridden when Use Atlas is enabled.