Unity3D project settings for source code control

Written by  on April 17, 2014 

I keep having to Google the proper Unity3D project settings for source code control so I’m posting them here for my own future reference:

 

For Unity 3 and 4:

  1. Go to Edit>Project Settings>Editor
  2. In the inspector, change Version Control Mode to Meta Files
  3. If you have pro, change Asset Serialization Mode to Force Text

This will ensure that all your metadata is set in local metadata files, instead of in your Library folder. At this point, the Library folder becomes unnecessary to keep synced between users.

Now you can ignore these files in your preferred version control, including the entire Library folder:

   $PROJDIR/Temp/
   $PROJDIR/Library/
   $PROJDIR/Obj/
 
   *.csproj
   *.unityproj
   *.sln
   *.sln.dotsettings
   *.suo
   *.user
   *.userprefs
   *.DS_store

 

Reference: link


		  

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.