Incompatibility with .net 4.x



  • Hi,

    I just purchased Shadero Sprite Editor, and get a problem
    I use Unity 2018.1.1f1
    I have this messages when I open the Shadero Window

    UnityException: Cannot Load NodeCanvas: The file at the specified path 'Assets\ShaderoSprite\Plugins\Editor/LastSession.asset' is no valid save file as it does not contain a NodeCanvas!
    _ShaderoShaderEditorFramework.NodeEditorSaveManager.LoadNodeCanvas (System.String path, System.Boolean createWorkingCopy) (at Assets/ShaderoSprite/Plugins/Editor/Framework/NodeEditorSaveManager.cs:171)
    _ShaderoShaderEditorFramework.NodeEditorUserCache.LoadCache () (at Assets/ShaderoSprite/Plugins/Editor/Framework/NodeEditorUserCache.cs:160)
    _ShaderoShaderEditorFramework.NodeEditorUserCache.SetupCacheEvents () (at Assets/ShaderoSprite/Plugins/Editor/Framework/NodeEditorUserCache.cs:73)
    _ShaderoShaderEditorFramework.Standard.NodeEditorWindow.OnEnable () (at Assets/ShaderoSprite/Plugins/Editor/NodeEditorWindow.cs:85)
    UnityEditor.EditorWindow:GetWindow()
    _ShaderoShaderEditorFramework.Standard.NodeEditorWindow:OpenNodeEditor() (at Assets/ShaderoSprite/Plugins/Editor/NodeEditorWindow.cs:42)

    NullReferenceException: Object reference not set to an instance of an object
    _ShaderoShaderEditorFramework.Standard.NodeEditorWindow.DrawSceneGUI () (at Assets/ShaderoSprite/Plugins/Editor/NodeEditorWindow.cs:120)
    _ShaderoShaderEditorFramework.Standard.NodeEditorWindow.OnSceneGUI (UnityEditor.SceneView sceneview) (at Assets/ShaderoSprite/Plugins/Editor/NodeEditorWindow.cs:115)
    UnityEditor.SceneView.CallOnSceneGUI () (at C:/buildslave/unity/build/Editor/Mono/SceneView/SceneView.cs:2607)
    UnityEditor.SceneView.HandleSelectionAndOnSceneGUI () (at C:/buildslave/unity/build/Editor/Mono/SceneView/SceneView.cs:1909)
    UnityEditor.SceneView.OnGUI () (at C:/buildslave/unity/build/Editor/Mono/SceneView/SceneView.cs:1746)
    System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <e1a80661d61443feb3dbdaac88eeb776>:0)
    Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
    System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <e1a80661d61443feb3dbdaac88eeb776>:0)
    System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at <e1a80661d61443feb3dbdaac88eeb776>:0)
    UnityEditor.HostView.Invoke (System.String methodName, System.Object obj) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:291)
    UnityEditor.HostView.Invoke (System.String methodName) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:284)
    UnityEditor.HostView.InvokeOnGUI (UnityEngine.Rect onGUIPosition) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:257)
    UnityEditor.DockArea.OldOnGUI () (at C:/buildslave/unity/build/Editor/Mono/GUI/DockArea.cs:386)
    UnityEngine.Experimental.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt) (at C:/buildslave/unity/build/Modules/UIElements/IMGUIContainer.cs:211)
    UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

    NullReferenceException: Object reference not set to an instance of an object
    _ShaderoShaderEditorFramework.Standard.NodeEditorWindow.DrawSceneGUI () (at Assets/ShaderoSprite/Plugins/Editor/NodeEditorWindow.cs:120)
    _ShaderoShaderEditorFramework.Standard.NodeEditorWindow.OnSceneGUI (UnityEditor.SceneView sceneview) (at Assets/ShaderoSprite/Plugins/Editor/NodeEditorWindow.cs:115)
    UnityEditor.SceneView.CallOnSceneGUI () (at C:/buildslave/unity/build/Editor/Mono/SceneView/SceneView.cs:2607)
    UnityEditor.SceneView.HandleSelectionAndOnSceneGUI () (at C:/buildslave/unity/build/Editor/Mono/SceneView/SceneView.cs:1909)
    UnityEditor.SceneView.OnGUI () (at C:/buildslave/unity/build/Editor/Mono/SceneView/SceneView.cs:1746)
    System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <e1a80661d61443feb3dbdaac88eeb776>:0)
    Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
    System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <e1a80661d61443feb3dbdaac88eeb776>:0)
    System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at <e1a80661d61443feb3dbdaac88eeb776>:0)
    UnityEditor.HostView.Invoke (System.String methodName, System.Object obj) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:291)
    UnityEditor.HostView.Invoke (System.String methodName) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:284)
    UnityEditor.HostView.InvokeOnGUI (UnityEngine.Rect onGUIPosition) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:257)
    UnityEditor.DockArea.OldOnGUI () (at C:/buildslave/unity/build/Editor/Mono/GUI/DockArea.cs:386)
    UnityEngine.Experimental.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt) (at C:/buildslave/unity/build/Modules/UIElements/IMGUIContainer.cs:211)
    UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

    UnityException: Cache system error: Current Canvas is not saved as the temporary cache!
    _ShaderoShaderEditorFramework.NodeEditorUserCache.CheckCurrentCache () (at Assets/ShaderoSprite/Plugins/Editor/Framework/NodeEditorUserCache.cs:180)
    _ShaderoShaderEditorFramework.NodeEditorUserCache.SaveCache () (at Assets/ShaderoSprite/Plugins/Editor/Framework/NodeEditorUserCache.cs:148)
    _ShaderoShaderEditorFramework.NodeEditorUserCache.NewNodeCanvas (System.Type canvasType) (at Assets/ShaderoSprite/Plugins/Editor/Framework/NodeEditorUserCache.cs:286)
    _ShaderoShaderEditorFramework.NodeEditorUserCache.AssureCanvas () (at Assets/ShaderoSprite/Plugins/Editor/Framework/NodeEditorUserCache.cs:16)
    _ShaderoShaderEditorFramework.Standard.NodeEditorWindow.OnGUI () (at Assets/ShaderoSprite/Plugins/Editor/NodeEditorWindow.cs:143)
    System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <e1a80661d61443feb3dbdaac88eeb776>:0)
    Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
    System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <e1a80661d61443feb3dbdaac88eeb776>:0)
    System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at <e1a80661d61443feb3dbdaac88eeb776>:0)
    UnityEditor.HostView.Invoke (System.String methodName, System.Object obj) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:291)
    UnityEditor.HostView.Invoke (System.String methodName) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:284)
    UnityEditor.HostView.InvokeOnGUI (UnityEngine.Rect onGUIPosition) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:257)
    UnityEditor.DockArea.OldOnGUI () (at C:/buildslave/unity/build/Editor/Mono/GUI/DockArea.cs:386)
    UnityEngine.Experimental.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt) (at C:/buildslave/unity/build/Modules/UIElements/IMGUIContainer.cs:211)
    UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

    I have some strange effects using the Shadero Window (add twice each effect, no preview), and impossible to create a Shader

    I also notice 2 warnings :
    Assets/ShaderoSprite/Plugins/Editor/Utilities/EditorLoadingControl.cs(35,22): warning CS0618: UnityEditor.EditorApplication.playmodeStateChanged' is obsolete:Use EditorApplication.playModeStateChanged and/or EditorApplication.pauseStateChanged'
    Assets/ShaderoSprite/Plugins/Editor/Utilities/EditorLoadingControl.cs(39,22): warning CS0618: UnityEditor.EditorApplication.hierarchyWindowChanged' is obsolete:Use EditorApplication.hierarchyChanged'

    It is specific when using .net 4, if I change the project setting to .net 3.5, it works fine
    My project uses C# 4 langage specifications, so I need a solution quickly
    I remove my .net 4 specific code to test, but I need my code to continue ;)

    Thanks

    Davy



  • Hi,

    We will check on this issue and come back to you sooner

    Best Regards,
    Vetasoft



  • We have submit a new version 1.7.1 and, should fix the issues with the .net


 

Looks like your connection to Vetasoft Assets was lost, please wait while we try to reconnect.