Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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
2
Question by GameDevSA · Aug 27, 2019 at 10:54 AM · error messageassetsassetdatabase

Unity Error removes assets - "Rebuilding Library because asset database could not be found!"

I've had a strange error with Unity which keeps wiping virtually everything I've created. At the work office my project is fine, but when I try and pull it down from Source Tree at home, I get the following error from Unity: Rebuilding Library because the asset database could not be found!

Summary: To cut a long story short, the errors started since upgrading to 2019.1.13f, however, on my work PC the project works fine using Unity 2019.1.13f, but even though I have the same Unity at home, it won't work. If I download a version of the project from before the upgrade, it still works at home or at work, but for some reason any Git commit of the project after the upgrade will not work at home - the assets disappear when trying to run it. Following is the exact sequence of events and errors.

Sequence of Events: Previously I was using Unity 2019.1.1 at home, which was fine. When I went to work and they added Unity Hub, I decided to upgrade to 2019.1.13f. Everything was fine. No errors so far.

I didn't do any work on it at home for a bit. The next time I go to work on the project at home, I of course need to upgrade to 2019.1.13f, but it's not there in Unity HUB, only 2019.1.14f or 20119.2.2

So I tried 2019.2.2. This was the first time I got the error. I also got an error saying something about problems with serialisation. All of my levels disappeared, anything that used serialisation pretty much, but some prefabs were still intact. Many assets just completely vanished.

I decided to delete the project, reclone a fresh copy off BitBucket, and try 2019.1.14f. I got no errors mentioning serialisation, but the assets still disappeared with the error from the title.

Thinking maybe the error was to do with upgrading versions, I downloaded 2019.1.13f off of the Unity legacy archives, deleted the project and got a new fresh clone. This time the project didn't ask to upgrade, but the same error happened, all assets gone.

I then downloaded the previous commit off BitBucket and opened it - it worked fine. Really strange. Deciding something went wrong with the commit, I left it for the night.

Back at work today, the project was fine. I committed all my latest changes at the end of the day, then tried it again at home tonight. The same issues happened.

Finally I uninstalled Unity at home tonight, and manually deleted Unity files from the Program Files/Unity folders and from AppData/Roaming.

I then re-installed 2019.1.13f at home, the same version as at work. I then deleted the project once again off of my home PC, and re-cloned it. Didn't need to upgrade, but the assets still disappear at home, even though it was fine at work an hour previously.

Final Thoughts: I am at a loss as what to do to get it working at home. I've tried googling about this but could find nothing relevant to my specific issue.

The only thing I can absolutely determine is that the errors have started at home since upgrading to 2019.1.13f, however, the project works fine at work, but this error happens at home - even if using the same version of Unity.

Git Ignore File: Just in case it's relevant, here's my git ignore file:

 [Ll]ibrary/
 [Tt]emp/
 [Oo]bj/
 [Bb]uild/
 [Bb]uilds/
 Assets/AssetStoreTools*
 
 # Visual Studio cache directory
 .vs/
 
 # Autogenerated VS/MD/Consulo solution and project files
 ExportedObj/
 .consulo/
 *.csproj
 *.unityproj
 *.sln
 *.suo
 *.tmp
 *.user
 *.userprefs
 *.pidb
 *.booproj
 *.svd
 *.pdb
 *.opendb
 
 # Unity3D generated meta files
 *.pidb.meta
 *.pdb.meta
 
 # Unity3D Generated File On Crash Reports
 sysinfo.txt
 
 # Builds
 *.apk
 *.unitypackage







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 GameDevSA · Sep 04, 2019 at 05:07 AM 0
Share

I found a workaround, but not the answer. I copied the entire project to an external hard drive at work, went home and copy + pasted it into the directory at home. Files stopped disappearing and it just worked. No idea what happened still or why that would fix it, except that somehow some important files weren't getting pushed into the cloud properly - which ones, no idea.

0 Replies

· Add your reply
  • Sort: 

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

112 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 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 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 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 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 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 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 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

Where are asset labels stored? 1 Answer

Get prefab's path in file system 2 Answers

Referencing a ScriptableObject asset programatically 0 Answers

Error when importing certain assets packs (like water(pro)) 0 Answers

ImportSettings error 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