Search Issue Tracker
Not Reproducible
Votes
0
Found in
6000.3.0b3
6000.4.0a1
Issue ID
UUM-120311
Regression
Yes
"Asset import failed...", "DirectoryNotFoundException" and "NullReferenceException" errors thrown in the Console when opening an HDRP project with a freshly built "Library" folder
Steps to reproduce:
1. Create a new "3D (HDRP)" template project
2. Open the created project and wait for it to load
Expected result: The project opens with no errors
Actual result: The project opens with multiple errors related to HDRP Shader Graph
Reproducible with: 6000.3.0a1, 6000.3.0b3, 6000.4.0a1
Not reproducible with: 6000.0.58f1, 6000.2.6f1
Reproduced on: Windows 11 Pro (24H2)
Not reproduced on: No other environment tested
Notes:
- All of the errors are related to Shader Graphs
- Different Unity versions throw errors with different Shader Graphs, for example: 6000.3.0b2 throws errors related to HDRP “Hair <…>.shadersubgraph” Shader Graphs and 6000.3.0a1 throws errors related to “WaterSurfaceGradients.shadersubgraph” and “AutodeskInteractiveTransparent.ShaderGraph”
- The errors no longer appear after clearing the Console or reopening the project but they reappear if the “Library” folder is rebuilt
Error messages (6000.3.0b2):
DirectoryNotFoundException: Could not find a part of the path "<PROJECT PATH>\Library\PackageCache\com.unity.render-pipelines.high-definition@da150a241ed8\Runtime\RenderPipelineResources\ShaderGraph\Subgraph\Hair Coloration Along Length.shadersubgraph"
Asset import failed, "Packages/com.unity.render-pipelines.high-definition/Runtime/RenderPipelineResources/ShaderGraph/Subgraph/Hair Coloration Along Length.shadersubgraph" > DirectoryNotFoundException: Could not find a part of the path "<PROJECT PATH>\Library\PackageCache\com.unity.render-pipelines.high-definition@da150a241ed8\Runtime\RenderPipelineResources\ShaderGraph\Subgraph\Hair Coloration Along Length.shadersubgraph"
DirectoryNotFoundException: Could not find a part of the path "<PROJECT PATH>\Library\PackageCache\com.unity.render-pipelines.high-definition@da150a241ed8\Runtime\RenderPipelineResources\ShaderGraph\Subgraph\Hair Card Recalculate Normal.shadersubgraph"
Asset import failed, "Packages/com.unity.render-pipelines.high-definition/Runtime/RenderPipelineResources/ShaderGraph/Subgraph/Hair Card Recalculate Normal.shadersubgraph" > DirectoryNotFoundException: Could not find a part of the path "<PROJECT PATH>\Library\PackageCache\com.unity.render-pipelines.high-definition@da150a241ed8\Runtime\RenderPipelineResources\ShaderGraph\Subgraph\Hair Card Recalculate Normal.shadersubgraph"
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.ShaderGraph.GraphData.CollectShaderKeywords (UnityEditor.ShaderGraph.KeywordCollector collector, UnityEditor.ShaderGraph.GenerationMode generationMode) (at ./Library/PackageCache/com.unity.shadergraph@9519d14e3dc3/Editor/Data/Graphs/GraphData.cs:1386)
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.ShaderGraph.GraphData+<GetPromotedInputs>d__219.MoveNext () (at ./Library/PackageCache/com.unity.shadergraph@9519d14e3dc3/Editor/Data/Graphs/GraphData.cs:1402)
Asset import failed, "Packages/com.unity.render-pipelines.high-definition/Runtime/RenderPipelineResources/ShaderGraph/Hair Physical.shadergraph" > NullReferenceException: Object reference not set to an instance of an object
UnityEditor.ShaderGraph.GraphData+<GetPromotedInputs>d__219.MoveNext () (at ./Library/PackageCache/com.unity.shadergraph@9519d14e3dc3/Editor/Data/Graphs/GraphData.cs:1402)
Asset import failed, "Packages/com.unity.render-pipelines.high-definition/Runtime/RenderPipelineResources/ShaderGraph/Hair Approximate.shadergraph" > NullReferenceException: Object reference not set to an instance of an object
UnityEditor.ShaderGraph.GraphData+<GetPromotedInputs>d__219.MoveNext () (at ./Library/PackageCache/com.unity.shadergraph@9519d14e3dc3/Editor/Data/Graphs/GraphData.cs:1402)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Channel remapping dropdown in the Terrain Layer does not open when clicked on the title
- The Editor freezes indefinitely when a large number of elements are entered in the Subgraphs or Categories lists
- Some Visual Effects package Assets links to documentation are not working
- Heatmap asset’s documentation button in the Inspector window leads to “Sorry... that page seems to be missing!” page when clicked
- Crash on MonoBehaviour::CallMethodIfAvailable when performing various actions
Resolution Note:
While some of the reported files did receive changes or were moved, the broken references in the HDRP package have likely been addressed as new project templates have been updated.