Rendering layers
Rendering Layers determine which objects the decal will project onto
-
Enable Rendering Layers in URP Settings:
- Go to
Universal Renderer Dataasset. - Ensure that
Use Rendering Layersare enabled in theRenderer Features → Decalsettings.
- Go to
-
Set Rendering Layers on Decal Object:
- Select the 3D TextMeshPro object with the
Text Decalscript attached. - In the Inspector, locate the material settings, in the
Rendering Layersdropdown assign the desired rendering layer(s) for the decal.
- Select the 3D TextMeshPro object with the
-
Assign Rendering Layers to Target Surfaces:
- Select the objects in your scene that you want the decal to project onto.
- In the Inspector, locate the
Mesh Renderer → Additional Settings → Rendering Layer Maskdropdown. - Ensure these objects are assigned to the same rendering layer(s) as the decal.