Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Question Import parameters got modified during import

Discussion in '2020.2 Beta' started by _slash_, Nov 13, 2020.

  1. _slash_

    _slash_

    Joined:
    Mar 26, 2013
    Posts:
    37
    Hi,

    This issue is related to ticket #1217264
    I updated my project to 2020.2 yesterday as I needed features from HDRP 10.
    This resulted in a loooonng reimport process crashing or getting stuck a few times. I spent like 8hours in front of the logs to debug every failure.

    One that was harder to debug is this one. It's basically triggered by classes who use CreateAsset() in the OnValidate function, it stuck the import window with the scriptable object path in the status line, looking at the log it's stuck in a loop saying "Import parameters got modified during import" (full error later in the post)

    Commenting this out in my code during import did solve the issue, uncommenting once it's imported properly did create the scriptable object and it's working again.

    Now I wanted to know what is the best design approach to handle it properly as I'm now having the same issue with the Deform library:

    upload_2020-11-13_16-53-30.png
    upload_2020-11-13_16-53-17.png

    PS: I can't find a way to properly format the code, it adds bullet points...
    Code (csharp):
    1.  
    2. Start importing Assets/Deform/EditorResources/DeformSettings.asset using Guid(b428bc67b2df345198ce7e721ceda73c) Importer(-1,00000000000000000000000000000000)  -> (artifact id: 'f01845ce214abfa26d0c9421bbb3af2a') in 0.002025 seconds
    3. Import parameters got modified during import
    4. UnityEngine.StackTraceUtility:ExtractStackTrace () (at /Users/bokken/buildslave/unity/build/Runtime/Export/Scripting/StackTrace.cs:37)
    5. DeformEditor.DeformEditorResources:CreateAsset (UnityEngine.Object,string) (at Library/PackageCache/com.beans.deform@1.1.0/Code/Editor/DeformEditorResources.cs:52)
    6. DeformEditor.DeformEditorSettings:EnsureSettingsAsset () (at Library/PackageCache/com.beans.deform@1.1.0/Code/Editor/DeformEditorSettings.cs:16)
    7.  
    8. [Library/PackageCache/com.beans.deform@1.1.0/Code/Editor/DeformEditorResources.cs line 52]
    9.  
    10.