Unity Issue Tracker - HD (Unknown) “Cannot find the code for this Target, a package may be missing.” warning is thrown when creating a new ShaderGraph Decal from template for a Decal Projector Material
Closed
UUM-139789
HD (Unknown) “Cannot find the code for this Target, a package may be missing.” warning is thrown when creating a new ShaderGraph Decal from template for a Decal Projector Material
Unity: ShaderGraph
As Designed
6.6.X
6.5.X
Templates for Shader Graphs may support both HDRP and URP. When a target is missing from a project, this is the expected message.
Users can remove the target if they do not intend to support cross pipeline interactions or assets.
Steps to reproduce:
Create a new Unity project using the Universal 3D template
Create a new Decal Projector (GameObject > Rendering > URP Decal Projector)
Select the newly created Decal Projector in the Hierarchy window
Click on the "New" dropdown next to the Material property in the Inspector window
Select "ShaderGraph Decal from template"
Select the "Decal Simple" Shader Graph and click the "Create" button
Press Enter to finish naming the new Shader Graph
Open the newly created Shader Graph
Observe the Graph Inspector
Actual results: HD (Unknown) “Cannot find the code for this Target, a package may be missing.” warning is thrown in the Graph Inspector
Expected results: No warnings or errors in the Graph Inspector
Reproducible with versions: 6000.5.0b4, 6000.6.0a3
Can’t test with versions: 2023.1.0a3, 6000.0.73f1, 6000.3.13f1, 6000.4.3f1 (due to no ShaderGraph Decal from template option in the Decal Projector)
Tested on (OS): MacOS Silicon Tahoe 26.3
Prioritise and Follow this issue
Have a workaround or additional info about this issue?