Search Unity

  1. We are migrating the Unity Forums to Unity Discussions by the end of July. Read our announcement for more information and let us know if you have any questions.
    Dismiss Notice
  2. Dismiss Notice

Question Import Iteration 2 -- Prefabs freezing\ crashing

Discussion in 'Editor & General Support' started by KarlKarl2000, Jul 30, 2020.

  1. KarlKarl2000

    KarlKarl2000

    Joined:
    Jan 25, 2016
    Posts:
    609
    Hi @Aurore @BasilUnity @JoshPeterson @Tomas1856

    I'm trying to once again, update 2019.3 ~> 2019.4. (yea I'm a glutton for punishment) The editor is still crashing at the import phase. OBJ file, C# scripts seem to be ok.

    It's happening for 2020.1 as well... What am I doing wrong??:eek:
    screenshot.7.jpg
    screenshot.1.jpg
    screenshot.3.jpg

    Is there a way to "clean" out the prefabs and making them best ready for import into a new version of the editor?

    The "freezing on prefab import" , is it related to this issue in the release notes?
    screenshot.11.jpg
    screenshot.2.jpg

    Thanks
     
    Last edited: Jul 30, 2020
  2. Ryan-Hayle

    Ryan-Hayle

    Joined:
    Feb 16, 2014
    Posts:
    142
    Yes as the above image states, it is a known issue. The fix is in Unity 2020.1.2f1, 2020.2.0a21 and most likely to be announced 2019.4.8f1.
     
  3. KarlKarl2000

    KarlKarl2000

    Joined:
    Jan 25, 2016
    Posts:
    609
    Thanks for the confirmation. . :(
     
  4. phil_gemini_fang

    phil_gemini_fang

    Joined:
    May 20, 2019
    Posts:
    3
    I am using 2019.4.20f1c1
    the problem still exist
    class post_proccess () {
    internal static void OnPostprocessAllAssets(string[] importedAssets,
    string[] deletedAssets,
    string[] movedAssets,
    string[] movedFromAssetPaths) {
    foreach (string path in importedAssets) {
    if (!path.EndsWith(".prefab")) continue;
    GameObject o = AssetDatabase.LoadAssetAtPath<GameObject>(path);

    }
    }
    }
    class modify_gameobject
    {
    public void run() {
    AssetDatabase.StartAssetEditing();
    for(string path in list){
    GameObject go = AsssetDataBase.LoadAsset
    modify(go)
    EditorUtility.SetDirty(go);
    }
    AssetDatabase.StopAssetEditing();
    AssetDatabase.SaveAssets()
    }
    }
    new modify_gameobject().run()


    the process bar blink with title import (iteration 2)
    and never stop unitl the unity process killed