+1

Exception after running game

Dave C 9 років тому оновлено Mike Monroe 8 років тому 1

Running Unity 5.3.5f1

ShaderForge window is open with a shader loaded. While the game is running and after the game is stopped, clicking the ShaderForge window brings up an exception


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

ShaderForge.SF_PassSettings.OnLocalGUI (Int32 yOffset, Int32 in_maxWidth)
ShaderForge.SF_Editor.DrawPreviewPanel (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/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222)

This prints out constantly and prevents the shader forge window from being moved or closed. A Unity restart is the only way I've found to get around this

I'm having this exact same issue, it's basically preventing me from using Shader Forge for longer than 2 minutes.