Search Unity

Feedback ArgumentException: Can not deserialize

Discussion in 'Shader Graph' started by Rowlan, Mar 4, 2020.

  1. Rowlan

    Rowlan

    Joined:
    Aug 4, 2016
    Posts:
    4,290
    Shader Graph seems to store absolute paths in the cache. I renamed my project from C:/Unity/Racing to C:/Unity/RacingHDRP and now get this because of the old folder name that can't be found anymore:

    Code (CSharp):
    1. ArgumentException: Can not deserialize (UnityEditor.Rendering.Universal.UniversalPBRSubShader), type is invalid
    2. UnityEditor.Graphing.SerializationHelper.Deserialize[T] (UnityEditor.Graphing.SerializationHelper+JSONSerializedElement item, System.Collections.Generic.Dictionary`2[TKey,TValue] remapper, System.Object[] constructorArgs) (at C:/Unity/Racing/Library/PackageCache/com.unity.shadergraph@7.2.1/Editor/Data/Util/SerializationHelper.cs:105)
    3. UnityEditor.Graphing.SerializationHelper.Deserialize[T] (System.Collections.Generic.IEnumerable`1[T] list, System.Collections.Generic.Dictionary`2[TKey,TValue] remapper, System.Object[] constructorArgs) (at C:/Unity/Racing/Library/PackageCache/com.unity.shadergraph@7.2.1/Editor/Data/Util/SerializationHelper.cs:157)
    4. UnityEditor.Experimental.AssetImporters.ScriptedImporter:GenerateAssetData(AssetImportContext)
    5.  
    I'll just delete it and have it rebuilt, but it would be great if no absolute paths were stored anywhere.