Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by ZeoWorks · Mar 01, 2013 at 08:55 PM · prefabresetafter

Prefab is not working anymore after opening my project.

Hey everyone :D 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!

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image ZeoWorks · Mar 02, 2013 at 11:38 AM 0
Share

Anyone? :(

3 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by IAliHC · Feb 06, 2017 at 08:32 AM

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

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image DhTier · Aug 08, 2018 at 11:23 AM 0
Share

I just ran into this issue with Unity. $$anonymous$$y laptop crashed and after that my prefabs turned into "empty sheets". So frustrating, so many hours into those prefabs. ._.

avatar image
0

Answer by rednax20 · Mar 02, 2013 at 04:47 PM

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.

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image ZeoWorks · Mar 02, 2013 at 11:13 PM 0
Share

Thank you for your reply rednax, but I am in the right project. :( I tried re-opening it multiple times and it still didn't work. Also, before the prefab 'crashed/broke' for some reason it asked me to 'update' the project even know that I DIDN'T update Unity what so ever. All my other projects didn't have this issue either. >.<

avatar image ZeoWorks · Mar 06, 2013 at 04:36 PM 0
Share

Is there any other suggestions or tools I can use to recover it? Thanks!

avatar image
0

Answer by Bunny83 · Mar 06, 2013 at 04:45 PM

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"

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image ZeoWorks · Mar 06, 2013 at 05:03 PM 0
Share

Thank you for looking at the prefab in your own spare time, That's sad to hear, I had a lot of hours work inside that prefab.:( Do you know the reason/cause for this problem to happen so I can prevent it in the future? thank you again.

avatar image SwagGamez · Jun 01, 2015 at 12:34 PM 0
Share

I have the same problem with my prefabs. I noticed only the systems components/scripts (graphic raycaster, image, button etc) disappear every time I reopen the project or scene. Not sure why.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

14 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Multiple Cars not working 1 Answer

Prefab doesn't work when placed in another scene. 0 Answers

The value is not reset for prefab. 2 Answers

GUI Not displaying itselfe in Multiplayer lobby 1 Answer

Pause Menu background problem 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges