Copyright © 2026 Unity Technologies
Steps to reproduce:
1. Create new Unity project using Universal 3D Template
2. Open Package Manager and find Shader Graph Package
3. Select Samples tab in Shader Graph package and import Particle Shaders Sample
4. Observe the Console window after Sample is imported
Actual results: “UnassignedReferenceException” errors are thrown in the Console window
Expected results: No errors are thrown in the Console window
Reproducible with versions: 6000.6.0b2 6000.6.0b3, 6000.6.0b4, 6000.7.0a2
Can’t test with versions: 6000.6.0b1, 6000.5.4f1 and lower (No Particle Shaders Sample)
Tested on (OS): Linux 26.04, macOS Tahoe 26.5.1 (M1)
UnassignedReferenceException: The variable prefab of GetSampleInfos has not been assigned. You probably need to assign the prefab variable of the GetSampleInfos script in the inspector. UnityEngine.Object+MarshalledUnityObject.TryThrowEditorNullExceptionObject (UnityEngine.Object unityObj, System.String parameterName) (at /Users/bokken/build/output/unity/unity/Runtime/Export/Scripting/UnityEngineObject.bindings.cs:1160) UnityEngine.Bindings.ThrowHelper.ThrowNullReferenceException (System.Object obj) (at /Users/bokken/build/output/unity/unity/Runtime/Export/Scripting/BindingsHelpers.cs:21) UnityEngine.Object.GetName () (at <268870c242d34550bbbd5baec5327db8>:0) UnityEngine.Object.get_name () (at /Users/bokken/build/output/unity/unity/Runtime/Export/Scripting/UnityEngineObject.bindings.cs:428) GetSampleInfos.UpdateText () (at Assets/Samples/Scriptable Render Pipeline Core/17.6.0/Common/Scripts/GetSampleInfos.cs:52) GetSampleInfos.OnValidate () (at Assets/Samples/Scriptable Render Pipeline Core/17.6.0/Common/Scripts/GetSampleInfos.cs:38) UnityEngine.StackTraceUtility:ExtractStringFromExceptionInternal(Object, String&, String&) (at /Users/bokken/build/output/unity/unity/Runtime/Export/Scripting/StackTrace.cs:50)
Issues you vote on will appear here