Prefab is not working anymore after opening my project.

Hey everyone :smiley: I ran into a massive problem. I have a prefab that has many scripts and objects in it, it was all working fine until I re-opened unity and the prefab lost EVERYTHING, every script, object .etc It doesn’t appear as a prefab in the inspector anymore, it appears as a unknown file of some sort? How do I change/fix/recover it back? Here is the prefab if you want to take a look at it. Thanks!

Unity still has this issue so here I am answering this question for those who are facing this. Prefab lost thier state when you open project in older version of unity and in newer again.
Solutiuon or workaround is as follows:

  1. You must have some script in your hierarchy which links that prefab to scene(afer lost state you can’t do this but all previous link will stay valid, if you don’t have refrence then move your prefab to resources folder and go to next step)
  2. Instentiate your prefab in runtime and copy full gameobject/prefab from scene during runtime
  3. Stop the game and paste in hierarchy , you will have your prefab as gameobject there
  4. Drag them in project again and you ll have your lost prefab again

Note: you need to renew your links again to new prefab

this happened to me, you are probably in a the wrong project. Projects hold your scripts, not your scenes so opening the scene in the wrong project would give you the scene without scripts. Just press open project and it should get you working again.

I’m sorry, but if that’s the only version you have of the prefab it’s gone forever. I just opened it with a hex viewer and it contains 586752 null bytes. There’s no content in it. You can delete this file since it’s just a “blank sheet of data”