Not signed in
Copyright © 2026 Unity Technologies
Steps to reproduce:
1. Create new Unity project using Universal 3D Template
2. Open Package Manager window
3. Select “All Samples” section
4. Find “Feature Examples” (Shader Graph) Sample
5. Press “Import” button
6. Observe the Console window
Actual results: Multiple errors are thrown in the Console window after importing Sample
Expected results: No errors are thrown in the Console window after importing Sample
Reproducible with versions: 6000.5.0a8, 6000.5.0b10, 6000.6.0a6
Can’t test with versions: 6000.5.0a7, 6000.4.9f1 and lower (“All Samples” section is not available)
Tested on (OS): macOS Tahoe 26.3.1 (M1), Ubuntu 24.04
KeyNotFoundException: The given key '62ad4455d271ca24aac0b75094d0ccff' was not present in the dictionary. System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) (at <3eb0070ec3184acfa9cdfc9616bb21ab>:0) UnityEditor.ShaderGraph.ShaderSubGraphImporter.ContainsCircularDependency (UnityEngine.GUID assetGUID, System.Collections.Generic.Dictionary`2[TKey,TValue] dependencyMap, System.Collections.Generic.List`1[T] ancestors) (at ./Library/PackageCache/com.unity.shadergraph@a4375800fbb7/Editor/Importers/ShaderSubGraphImporter.cs:508) UnityEditor.ShaderGraph.ShaderSubGraphImporter.ContainsCircularDependency (UnityEngine.GUID assetGUID, System.Collections.Generic.Dictionary`2[TKey,TValue] dependencyMap, System.Collections.Generic.List`1[T] ancestors) (at ./Library/PackageCache/com.unity.shadergraph@a4375800fbb7/Editor/Importers/ShaderSubGraphImporter.cs:510) UnityEditor.ShaderGraph.ShaderSubGraphImporter.GatherDescendentsFromGraph (UnityEngine.GUID rootAssetGuid, System.Boolean& containsCircularDependency, System.Collections.Generic.HashSet`1[UnityEngine.GUID]& descendentGuids) (at ./Library/PackageCache/com.unity.shadergraph@a4375800fbb7/Editor/Importers/ShaderSubGraphImporter.cs:459) UnityEditor.ShaderGraph.ShaderSubGraphImporter.ProcessSubGraph (UnityEditor.ShaderGraph.SubGraphAsset asset, UnityEditor.ShaderGraph.GraphData graph, UnityEditor.ShaderGraph.ShaderGraphImporter+AssetImportErrorLog importLog, System.String documentationPath) (at ./Library/PackageCache/com.unity.shadergraph@a4375800fbb7/Editor/Importers/ShaderSubGraphImporter.cs:254) UnityEditor.ShaderGraph.ShaderSubGraphImporter.OnImportAsset (UnityEditor.AssetImporters.AssetImportContext ctx) (at ./Library/PackageCache/com.unity.shadergraph@a4375800fbb7/Editor/Importers/ShaderSubGraphImporter.cs:93) UnityEditor.GUIView:ProcessEvent(EntityId, IntPtr, Boolean&) (at /Users/bokken/build/output/unity/unity/Editor/Mono/GUIView.cs:70)
Sub Graph at Assets/Samples/Shader Graph/17.5.0/Feature Examples/Custom Lighting/PBR/DiffusePBR.shadersubgraph has 1 error(s), the first is: Validation: Could not find Sub Graph asset with GUID 62ad4455d271ca24aac0b75094d0ccff. UnityEditor.GUIView:ProcessEvent (UnityEngine.EntityId,intptr,bool&)
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@a4375800fbb7/Editor/Data/Graphs/GraphData.cs:1388) UnityEditor.ShaderGraph.Generator.BuildShader (System.String additionalShaderID, System.Collections.Generic.List`1[T] outTemporaryBlocks) (at ./Library/PackageCache/com.unity.shadergraph@a4375800fbb7/Editor/Generation/Processors/Generator.cs:273) UnityEditor.ShaderGraph.Generator..ctor (UnityEditor.ShaderGraph.GraphData graphData, UnityEditor.ShaderGraph.AbstractMaterialNode outputNode, UnityEditor.ShaderGraph.GenerationMode mode, System.String primaryShaderName, UnityEditor.ShaderGraph.Target[] targets, UnityEditor.ShaderGraph.AssetCollection assetCollection, System.Boolean humanReadable, System.Boolean hidden) (at ./Library/PackageCache/com.unity.shadergraph@a4375800fbb7/Editor/Generation/Processors/Generator.cs:168) UnityEditor.ShaderGraph.ShaderGraphImporter.BuildAllShaders (UnityEditor.AssetImporters.AssetImportContext importContext, UnityEditor.ShaderGraph.ShaderGraphImporter+AssetImportErrorLog importErrorLog, UnityEditor.ShaderGraph.AssetCollection allImportAssetDependencies, UnityEditor.ShaderGraph.GraphData graph) (at ./Library/PackageCache/com.unity.shadergraph@a4375800fbb7/Editor/Importers/ShaderGraphImporter.cs:155) UnityEditor.GUIView:ProcessEvent(EntityId, IntPtr, Boolean&) (at /Users/bokken/build/output/unity/unity/Editor/Mono/GUIView.cs:70)
Asset import failed, "Assets/Samples/Shader Graph/17.5.0/Feature Examples/VertexAnimation/Billboard/Billboard.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@a4375800fbb7/Editor/Data/Graphs/GraphData.cs:1404) UnityEditor.ShaderGraph.ShaderGraphImporter.OnImportAsset (UnityEditor.AssetImporters.AssetImportContext ctx) (at ./Library/PackageCache/com.unity.shadergraph@a4375800fbb7/Editor/Importers/ShaderGraphImporter.cs:358) UnityEditor.AssetImporters.ScriptedImporter.GenerateAssetData (UnityEditor.AssetImporters.AssetImportContext ctx) (at /Users/bokken/build/output/unity/unity/Modules/AssetPipelineEditor/Public/ScriptedImporter.cs:25) UnityEditor.GUIView:ProcessEvent(EntityId, IntPtr, Boolean&) (at /Users/bokken/build/output/unity/unity/Editor/Mono/GUIView.cs:70) UnityEditor.GUIView:ProcessEvent (UnityEngine.EntityId,intptr,bool&)
Sign in to see your voted issues