0
Under review

Adding 'World Position' node error

Brad Hammond 9 years ago updated by Freya Holmér (Developer) 9 years ago 1

When adding a world position node I get the following error.

Using latest Shader forge and Unity 5.2.0f3





NullReferenceException: Object reference not set to an instance of an object

ShaderForge.SF_NodePreview.LoadDataTexture (System.String path)
ShaderForge.SF_NodePreview.LoadDataTexture (System.Type type)
ShaderForge.SF_Node.Initialize (System.String name, Boolean vectorDataTexture)
ShaderForge.SFN_FragmentPosition.Initialize ()
ShaderForge.SF_EditorNodeData.CreateInstance ()
ShaderForge.SF_Editor.AddNode (ShaderForge.SF_EditorNodeData nodeData, Boolean registerUndo)
ShaderForge.SF_Editor.UpdateKeyHoldEvents (Boolean mouseOverSomeNode)
ShaderForge.SF_EditorNodeView.OnLocalGUI (Rect r)
ShaderForge.SF_Editor.OnGUI ()
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-runtime-and-classlibs/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222)




Under review

Looks like you're missing the node data files. Try doing a clean reinstall of SF like this:
http://acegikmo.com/shaderforge/faq/?Q=erroronnewversion#erroronnewversion