Version: Unity 6.5 (6000.5)
Language : English
Decal Renderer Feature reference
Decals in the Built-In Render Pipeline

Decal Projector component reference for URP

The Decal Projector component contains the Scene view editing tools and the Decal Projector properties.

Note: If you assign a Decal Material to a GameObject directly (not via a Decal Projector component), then Decal Projectors do not project decals on such GameObject.

Decal Scene view editing tools

When you select a Decal Projector, Unity shows its bounds and the projection direction.

The Decal Projector draws the decal Material on every Mesh inside the bounding box.

The white arrow shows the projection direction. The base of the arrow is the pivot point.

A scene where a Decal Projector projects the letter D onto a floor and wall. The Decal Projector is selected, and a white arrow points from the axis gizmo in the direction of the projection.
A scene where a Decal Projector projects the letter ‘D’ onto a floor and wall. The Decal Projector is selected, and a white arrow points from the axis gizmo in the direction of the projection.

The Decal Projector component provides the following Scene view editing tools.

Icon Action Description
Decal Projector scale Scale Select to scale the projector box and the decal. This tool changes the UVs of the Material to match the size of the projector box. The tool does not affect the pivot point.
Decal Projector crop Crop Select to crop or tile the decal with the projector box. This tool changes the size of the projector box but not the UVs of the Material. The tool does not affect the pivot point.
Decal Projector pivot UV Pivot / UV Select to move the pivot point of the decal without moving the projection box. This tool changes the transform position.
This tool also affects the UV coordinates of the projected texture.

Decal Projector component properties

This section describes the Decal Projector component properties.

Property Description
Scale Mode Select whether this Decal Projector inherits the Scale values from the Transform component of the root GameObject. For more information, refer to Scale Mode property.
Note: since the Decal Projector uses the orthogonal projection, if the root GameObject is skewed, the decal does not scale correctly.
Width The width of the projector bounding box. The projector scales the decal to match this value along the local X axis.
Height The height of the projector bounding box. The projector scales the decal to match this value along the local Y axis.
Projection Depth The depth of the projector bounding box. The projector projects decals along the local Z axis.
Pivot The offset position of the center of the projector bounding box relative to the origin of the root GameObject.
Material The Material to project. The Material must use a Shader Graph that has the Decal Material type. Use the New dropdown to create a new decal material and its associated shader from a template. The options are the following:
  • URP Decal: Creates a new material from the default URP Decal shader graph asset, which uses the URP Decal material type.
  • ShaderGraph Decal: Creates a new material or material variant from a new shader graph asset based on the Decal URP Default shader graph template, which also uses the default URP Decal material type.
  • ShaderGraph Decal from Template: Opens the Shader Graph template window and lists all available decal shader graph templates to start from to create a new material or material variant.
Note: To define if Unity creates a material or a material variant from a shader graph asset, refer to the Graph Template Workflow option in the Shader Graph Preferences.
Tiling The tiling values for the decal Material along its UV axes.
Offset The offset values for the decal Material along its UV axes.
Opacity This property lets you specify the opacity value. A value of 0 makes the decal fully transparent, a value of 1 makes the decal as opaque as defined by the Material.
Draw Distance The distance from the Camera to the Decal at which this projector stops projecting the decal and URP no longer renders the decal. If you enable Adaptive Performance, it can override Draw Distance so the draw distance is lower.
Start Fade Use the slider to set the distance from the Camera at which the projector begins to fade out the decal. Values from 0 to 1 represent a fraction of the Draw Distance. With a value of 0.9, Unity starts fading the decal out at 90% of the Draw Distance and finishes fading it out at the Draw Distance.
Angle Fade Use the slider to set the fade out range of the decal based on the angle between the decal’s backward direction and the vertex normal of the receiving surface.

Scale Mode property

Option Description
Scale Invariant Unity uses the scaling values (Width, Height, etc.) only in this component, and ignores the values in the root GameObject.
Inherit from Hierarchy Unity evaluates the scaling values for the decal by multiplying the lossy Scale values of the Transform of the root GameObject by the Decal Projector’s scale values.

Additional resources

Decal Renderer Feature reference
Decals in the Built-In Render Pipeline