Outline function error

Node-based Shader Editor

Outline function error

Postby mossman » Tue Feb 19, 2019 4:42 pm

Hello,

I created a shader function with that uses the outline node. If i use this function in a shader, for exammple a standard surface shader and i save the shader I get this error in the console.

Code: Select all
NullReferenceException: Object reference not set to an instance of an object
AmplifyShaderEditor.OutlineNode.PropagateNodeData (NodeData nodeData, AmplifyShaderEditor.MasterNodeDataCollector& dataCollector) (at Assets/AmplifyShaderEditor/Plugins/Editor/Nodes/Vertex/OutlineNode.cs:85)
AmplifyShaderEditor.ParentNode.PropagateNodeData (NodeData nodeData, AmplifyShaderEditor.MasterNodeDataCollector& dataCollector) (at Assets/AmplifyShaderEditor/Plugins/Editor/Nodes/ParentNode.cs:3199)
AmplifyShaderEditor.ParentNode.PropagateNodeData (NodeData nodeData, AmplifyShaderEditor.MasterNodeDataCollector& dataCollector) (at Assets/AmplifyShaderEditor/Plugins/Editor/Nodes/ParentNode.cs:3199)
AmplifyShaderEditor.FunctionNode.PropagateNodeData (NodeData nodeData, AmplifyShaderEditor.MasterNodeDataCollector& dataCollector) (at Assets/AmplifyShaderEditor/Plugins/Editor/Nodes/Master/FunctionNode.cs:483)
AmplifyShaderEditor.MasterNode.SetupNodeCategories () (at Assets/AmplifyShaderEditor/Plugins/Editor/Nodes/Master/MasterNode.cs:174)
AmplifyShaderEditor.StandardSurfaceOutputNode.Execute (System.String pathname, Boolean isFullPath) (at Assets/AmplifyShaderEditor/Plugins/Editor/Nodes/Master/StandardSurface.cs:1398)
AmplifyShaderEditor.MasterNode.Execute (UnityEngine.Shader selectedShader) (at Assets/AmplifyShaderEditor/Plugins/Editor/Nodes/Master/MasterNode.cs:470)
AmplifyShaderEditor.ParentGraph.FireMasterNode (UnityEngine.Shader selectedShader) (at Assets/AmplifyShaderEditor/Plugins/Editor/Graphs/ParentGraph.cs:2579)
AmplifyShaderEditor.AmplifyShaderEditorWindow.SaveToDisk (Boolean checkTimestamp) (at Assets/AmplifyShaderEditor/Plugins/Editor/Menu/AmplifyShaderEditorWindow.cs:1431)
AmplifyShaderEditor.AmplifyShaderEditorWindow.OnToolButtonPressed (ToolButtonType type) (at Assets/AmplifyShaderEditor/Plugins/Editor/Menu/AmplifyShaderEditorWindow.cs:1526)
AmplifyShaderEditor.ToolsWindow.OnButtonPressedEvent (ToolButtonType type) (at Assets/AmplifyShaderEditor/Plugins/Editor/Menu/Tools/ToolsWindow.cs:206)
AmplifyShaderEditor.ToolsMenuButton.Draw (Single x, Single y) (at Assets/AmplifyShaderEditor/Plugins/Editor/Menu/Tools/ToolsMenuButton.cs:172)
AmplifyShaderEditor.ToolsWindow.Draw (Rect parentPosition, Vector2 mousePosition, Int32 mouseButtonId, Boolean hasKeyboadFocus) (at Assets/AmplifyShaderEditor/Plugins/Editor/Menu/Tools/ToolsWindow.cs:234)
AmplifyShaderEditor.AmplifyShaderEditorWindow.OnGUI () (at Assets/AmplifyShaderEditor/Plugins/Editor/Menu/AmplifyShaderEditorWindow.cs:4335)
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222)


How I solve this error?

Thanks
mossman
 
Posts: 40
Joined: Sun Dec 10, 2017 3:58 pm

Re: Outline function error

Postby Amplify_Borba » Wed Feb 20, 2019 5:09 pm

Hello, thank you for reporting this issue, I've confirmed it on my end and have escalated it to the developer for further investigation.

We'll get back in touch as soon as we have any developments.
Customer Relations at Amplify Creations
Learn more about our offering: Amplify Creations Products
Amplify Shader Editor won the Asset Store Best Tool Award - Thank you for your support!
User avatar
Amplify_Borba
 
Posts: 1239
Joined: Mon Jul 24, 2017 9:50 am

Re: Outline function error

Postby mossman » Wed Feb 20, 2019 6:17 pm

Thanks! I wait for your reply.
mossman
 
Posts: 40
Joined: Sun Dec 10, 2017 3:58 pm


Return to Amplify Shader Editor

Who is online

Users browsing this forum: No registered users and 13 guests