Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Duplicating Prefab causes Unity Editor crash

Discussion in 'Editor & General Support' started by KeithBrown, Apr 20, 2022.

  1. KeithBrown

    KeithBrown

    Joined:
    Apr 1, 2017
    Posts:
    185
    I have some prefabs that whenever I duplicate them they cause an unhandled exception and crash unity. I can duplicate them by going into explorer and copying the file and then renaming in the editor but I need to find out why they would cause a crash. My project will eventually be an asset for sale on the store. I am not sure where to go from here as I am fairly new to this sort of thing in Unity.
     
  2. KeithBrown

    KeithBrown

    Joined:
    Apr 1, 2017
    Posts:
    185
    For anyone that finds themselves here with a similar problem, I found the answer. For the prefabs that were causing the crash, the meta file had bad formatting in it. After the word guid there was a space between the word and the colon. The same issue was there for the word PrefabImporter also.

    I don't believe that this was a Unity issue as I use an asset that will automatically create prefabs for me from outside of Unity. I will get with the asset author and see if he can update their solution.