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 ILICH · Feb 16, 2016 at 01:05 PM · librarybug reportfoldersource-control

Removing Library folder is breaking the project

I'm doing pretty trivial thing:

  • creating a new project from scratch

  • with just one cube in it

  • changing version control mode to "visible meta files" like documentation suggests

  • changing asset serialization mode to "force text" (some people writing that this is required as well)

  • saving the project and closing unity

  • removing Library folder (documentation suggests that it can be removed without breaking project)

  • running unity with my project again

Expecting: to see my cube on a scene

Actual: cube disappears

Am I doing something wrong?

Comment
Add comment · Show 8
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 nishant842 · Sep 20, 2016 at 10:01 AM 0
Share

I see the same behavior as OP with build 5.4.0f3-HTP (b21dfedb4779) Personal. @ILICH di you manage to find a solution?

avatar image ILICH nishant842 · Sep 20, 2016 at 02:39 PM 0
Share

I actually figured out what was wrong. After you delete Library folder, Unity starts with "Untitled" empty scene ins$$anonymous$$d of the last scene that you worked with, as it normally does. However, you can still manually load your other scenes in the project and everything works fine after that, just click desired .scene file in your assets folder.

avatar image Bunny83 · Sep 20, 2016 at 10:26 AM 1
Share

Are you sure you actually opened your scene again after opening your project? Unity starts with an empty unsaved scene in the beginning.

avatar image ILICH Bunny83 · Sep 20, 2016 at 02:40 PM 0
Share

You are correct, thank you for the advice. After removing "Library" folder, Unity starts with "Untitled" empty scene for some reason.

avatar image Bonfire-Boy ILICH · Sep 20, 2016 at 03:48 PM 0
Share

The "some reason" isn't hard to guess. You just deleted something...

Show more comments
avatar image nishant842 Bunny83 · Sep 20, 2016 at 02:57 PM 0
Share
  • Loading the scene works fine.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by MixPix · Feb 16, 2016 at 02:50 PM

In our projects, we don't delete the library folder, but rather exclude it from version control. In SourceTree (and probably in other software) there is an ignore-file, where you can specify which folders, files or endings to exlude.

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 ILICH · Feb 20, 2016 at 07:05 PM 1
Share

Thank you $$anonymous$$ixPix, but I'm not following the logic. If my colleague gets project from git - he will not see Library folder, so, effect would be identical as if he just deleted it.

Can you please make it more clear what should I do to preserve the scene when sharing a project through version control in the scenario that I've described in my question?

avatar image Bonfire-Boy · Sep 20, 2016 at 10:37 AM 2
Share

It is true that you can omit the folder from version control without deleting it. But a) the OP never said this had anything to do with version control and b) I'm not sure that it helps anyway. If it's not possible to remove the Library folder without corrupting the project, then it's probably also impossible to restore the project from version control.

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

9 People are following this question.

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

Related Questions

Is Library folder necessary? 3 Answers

Looking for libiPhone-lib.a source 0 Answers

Managing the Library Folder 0 Answers

Unity AssetStore folder in Mac Library directory 0 Answers

Can not build project only using Assets and ProjectSettings folders 1 Answer


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