Question by
stuartmcroberts · Mar 26, 2019 at 01:16 AM ·
shaderrenderingshader programming
Shader Graph Editor fails to open shaders
I built several shaders in shader graph and it was all working fine i was able to open them and edit them. However now whenever i try to open them im getting the following stack trace error. They still seem to be working tho so the compiled code seems to be intact. Just trying to edit them in shader graph seems to be broken.
ArgumentNullException: Value cannot be null.
Parameter name: shader
UnityEngine.Material..ctor (UnityEngine.Shader shader) (at /Users/builduser/buildslave/unity/build/Runtime/Export/Shader.bindings.cs:105)
UnityEditor.ShaderGraph.Drawing.PreviewSceneResources..ctor () (at Library/PackageCache/com.unity.shadergraph@4.6.0-preview/Editor/Drawing/Views/PreviewSceneResources.cs:73)
UnityEditor.ShaderGraph.Drawing.PreviewManager..ctor (UnityEditor.ShaderGraph.AbstractMaterialGraph graph) (at Library/PackageCache/com.unity.shadergraph@4.6.0-preview/Editor/Drawing/PreviewManager.cs:48)
UnityEditor.ShaderGraph.Drawing.GraphEditorView..ctor (UnityEditor.EditorWindow editorWindow, UnityEditor.ShaderGraph.AbstractMaterialGraph graph) (at Library/PackageCache/com.unity.shadergraph@4.6.0-preview/Editor/Drawing/Views/GraphEditorView.cs:74)
UnityEditor.ShaderGraph.Drawing.MaterialGraphEditWindow.Initialize (System.String assetGuid) (at Library/PackageCache/com.unity.shadergraph@4.6.0-preview/Editor/Drawing/MaterialGraphEditWindow.cs:530)
UnityEditor.ShaderGraph.Drawing.MaterialGraphEditWindow.Update () (at Library/PackageCache/com.unity.shadergraph@4.6.0-preview/Editor/Drawing/MaterialGraphEditWindow.cs:114)
UnityEditor.EditorApplication:Internal_CallUpdateFunctions()
As well as this.
ArgumentException: Can not deserialize (UnityEditor.Experimental.Rendering.HDPipeline.HDPBRSubShader), type is invalid
UnityEditor.Graphing.SerializationHelper.Deserialize[T] (UnityEditor.Graphing.SerializationHelper+JSONSerializedElement item, System.Collections.Generic.Dictionary`2[TKey,TValue] remapper, System.Object[] constructorArgs) (at Library/PackageCache/com.unity.shadergraph@4.6.0-preview/Editor/Data/Util/SerializationHelper.cs:103)
UnityEditor.Graphing.SerializationHelper.Deserialize[T] (System.Collections.Generic.IEnumerable`1[T] list, System.Collections.Generic.Dictionary`2[TKey,TValue] remapper, System.Object[] constructorArgs) (at Library/PackageCache/com.unity.shadergraph@4.6.0-preview/Editor/Data/Util/SerializationHelper.cs:153)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Comment
Your answer
Follow this Question
Related Questions
How to make a filter for my Camera? 0 Answers
How can I rotate Cubemap? 0 Answers
Simple "Render on Top of Everything" Shader? 1 Answer
Is there any way to make a custom written shader with hdrp? 0 Answers
Looking at a Chunk from Straight Down will not Render Blocks, but Looking at it from the Side does? 1 Answer