+3
Under vurdering
I'm getting this error in latest Unity as of this writing.
Recursive Serialization is not supported. You can't dereference a PPtr while loading. (Constructors of C# classes may not load objects either eg. EditorGUIUtility.TextContent should be moved to OnEnable. See stacktrace.)
UnityEditor.AssetDatabase:LoadAssetAtPath(String, Type)
ShaderForge.SF_Resources:LoadInterfaceIcon(String)
ShaderForge.SF_GUI:get_Icon()
ShaderForge.SF_Editor:.ctor()
UnityEditorInternal.InternalEditorUtility:LoadSerializedFileAndForget(String)
UnityEditor.WindowLayout:LoadWindowLayout(String, Boolean)
Kundesupport af UserEcho
Update: Just tried this in a fresh project and the Shader Forge window also does not open when selecting Window -> Shader Forge. Windows 8, Unity 5.2.0f3, Shader Forge 1.19. Works fine with same project on Mac OS 10.10.5, same Unity version.
Unfortunately I can't look into this until I have time for it, which is in a few days
Here's what I did to get Unity back into working order. I'm not certain *all* of the steps are required, but including them all in case others run into this issue.
- Uninstall Unity
- Delete local Unity settings (everything under /ProgramData/Unity and [userpath]/AppData/[Local/LocalLow/Roaming]/Unity)
- Delete project Library
- Reinstall Unity (turns out 5.2.1f1 is the latest version as of writing)
- Open project
Hope that helps!- Open Unity
- Load a project w/ Shader Forge
- Move the Unity window into your non-primary monitor (my saved layout had the main Unity window in my 2nd monitor)
- Open Shader Forge
Result: The main Unity window becomes deselected and nothing else appears to happen. Upon closing/opening the project again, the Shader Forge window appears, and the errors from the original post show up in the console.I was able to work around this by switching my primary monitor, since in my case it doesn't matter which is which.
Repro steps, in case they help:
1. Install Shader Forge in a project
2. Open the Shader Forge editor window
3. Close and reopen Unity (so that the Shader Forge editor window opens on opening the project)
Result: the errors mentioned in the original report appear in the console.
I'm also getting this error since I added SF to my project.
I get two instances of the same error on opening the project. It only seems to make the error if I open the project and already had the SF window open, which I have been docking to a tab in the main editor space. The error doesn't seem to happen if the SF window was closed and then I open the project.
It doesn't appear to break anything or prevent me from doing anything, it's just annoying to have an error and sometimes the SF tab will close itself when I'm not using it.
Try this reinstall procedure: http://acegikmo.com/shaderforge/faq/?Q=erroronnewversion#erroronnewversion