I would like to know how I might go about cleaning a Unity project to remove all the local generated files, and just leave the files that are necessary to re-generate the project (like when you “clean” a C++ project in visual studio).
Is there a definitive “what is temporary & what isn’t” document anywhere, I’ve trawled all over the place and found nothing useful…
If you are running Unity 3.5 or later, it’s fairly simple. Under Edit > Project Settings > Editor, be sure Version Control Mode is set to Meta Files (available even in the free version starting with 3.5). Unity will then generate a .meta file for every file and folder in the Assets directory.
Everything in the Assets and ProjectSettings directories needs to be checked in, and you will be good to go. The Library directory will be recreated locally when someone else gets the project or updates to the project.
Hi guys,
I want to put my project in P4 as well.
I read the doc, but I have a couple of questions:
Steps 5, 6 and 9 seem redundant to me with P4. Can’t I just delete Library (step 4) and then submit Assets and ProjectSettings as step 5?
Step 7 will recreate Library, but it’s a local folder, why would I need to re-commit after? I really don’t get it.
Whenever I need to make modifications to a file, do I need to check out also the metafile associated with it?