0
Fixed

ShowObjectPicker error when placing texture nodes

sfthewolf 11 aastat tagasi uuendaja Freya Holmér (Developer) 11 aastat tagasi 5

The very first thing I did after importing Alpha 0.14 (into a project with no previous version of Shader Forge) was to create a new shader and add a Texture Asset node. That froze the Shader Forge editor and created an infinite loop of this error message in the console until I closed the Shader Forge window:


MissingMethodException: Method not found: 'UnityEditor.EditorGUIUtility.ShowObjectPicker'.
ShaderForge.SF_Node.DrawWindow ()
ShaderForge.SFN_Tex2dAsset.Draw ()
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 /Applications/buildAgent/work/84669f285f6a667f/mcs/class/corlib/System.Reflection/MonoMethod.cs:222)


Something similar happens if I add a Texture 2D node. The few other nodes I've tried worked fine.

Vasta

Vasta
Fixed

This is now fixed, as in, SF will tell you to update Unity to 4.2 or later if you try to launch it with an old version of Unity :)

I tested with the previous Alpha and the same thing happened. Then I tried 0.14 on my Windows machine however and it worked perfectly. My primary work computer is a Mac running the latest OS X.

+1

This should be related to your Unity version. You currently need 4.2 or later for SF

Interesting, the Unity updater was lying to me about having the latest version. Reinstalling manually from a freshly downloaded package pushed me past 4.1 and fixed the issue.

Sorry to be "that person" that filed a bug without being up to date :x

Actually, I'm reopening this. I should make SF say "Install 4.2 or later" if you're running an old Unity version.

Vasta
Fixed

This is now fixed, as in, SF will tell you to update Unity to 4.2 or later if you try to launch it with an old version of Unity :)