Your comments

Same issue, same repro steps. I posted here because I found this thread second.

http://shaderforge.userecho.com/topics/1204-shaderforge-editor-glitch/


My workflow is work on shader, hit play once, work on shader, close it, hit play, stop, re-open shader... Yea, not optimal. Bought ShaderForge a year ago and this is the first time I've had time to play with it.

I posted here as well with a similar crash: https://forum.unity3d.com/threads/shader-forge-a-visual-node-based-shader-editor.222049/page-109#post-2808284


OS X El Capitan on an iMac. I've tried Unity 5.3, 5.4 and various version of 5.4. I've reimported my project, reset all my layout settings.


So it looks like the reproduction steps are:

  1. Open Shader Forge
  2. Open a Shader
  3. Press Play
  4. Stop Play once your game is running
  5. Press Play again
  6. Stop Play
then Shader Forge window ceases to fully render and:


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)