I installed the lightweight rp package on unity 2018.4.22f1 and when i create a shader graph and try to open it it shows up this message:
Exception thrown while invoking [OnOpenAssetAttribute] method 'UnityEditor.ShaderGraph.ShaderGraphImporterEditor:OnOpenAsset (int,int)' : NullReferenceException: Object reference not set to an instance of an object
UnityEditor.Experimental.UIElements.GraphView.IconBadge.AttachTo (UnityEngine.Experimental.UIElements.VisualElement target, UnityEngine.SpriteAlignment align) (at C:/buildslave/unity/build/Modules/GraphViewEditor/IconBadge.cs:143)
UnityEditor.ShaderGraph.Drawing.MaterialNodeView.Initialize (UnityEditor.ShaderGraph.AbstractMaterialNode inNode, UnityEditor.ShaderGraph.Drawing.PreviewManager previewManager, UnityEditor.Experimental.UIElements.GraphView.IEdgeConnectorListener connectorListener) (at Library/PackageCache/com.unity.shadergraph@4.10.0-preview/Editor/Drawing/Views/MaterialNodeView.cs:155)
UnityEditor.ShaderGraph.Drawing.GraphEditorView.AddNode (UnityEditor.Graphing.INode node) (at Library/PackageCache/com.unity.shadergraph@4.10.0-preview/Editor/Drawing/Views/GraphEditorView.cs:322)
UnityEditor.ShaderGraph.Drawing.GraphEditorView..ctor (UnityEditor.EditorWindow editorWindow, UnityEditor.ShaderGraph.AbstractMaterialGraph graph) (at Library/PackageCache/com.unity.shadergraph@4.10.0-preview/Editor/Drawing/Views/GraphEditorView.cs:150)
UnityEditor.ShaderGraph.Drawing.MaterialGraphEditWindow.Initialize (System.String assetGuid) (at Library/PackageCache/com.unity.shadergraph@4.10.0-preview/Editor/Drawing/MaterialGraphEditWindow.cs:530)
UnityEditor.ShaderGraph.ShaderGraphImporterEditor.ShowGraphEditWindow (System.String path) (at Library/PackageCache/com.unity.shadergraph@4.10.0-preview/Editor/Importers/ShaderGraphImporterEditor.cs:50)
UnityEditor.ShaderGraph.ShaderGraphImporterEditor.OnOpenAsset (System.Int32 instanceID, System.Int32 line) (at Library/PackageCache/com.unity.shadergraph@4.10.0-preview/Editor/Importers/ShaderGraphImporterEditor.cs:60)
do anyone knows how to fix it?
↧