From: http://blog.dou.li/unity3d%E5%B7%A5%E7%A8%8B%E7%89%88%E6%9C%AC%E7%AE%A1%E7%90%86%E6%96%B9%E6%A1%88.html
When unity is developed for multi-person collaboration, it must involve the release management of resources, code, and configuration. Here's how to do unity Engineering version Management with SVN, Git, or another version management system.
To create a new unity project, the directory structure is basically like this:
- Assets, Library, projectsettings directory
- The runtime also makes more out of the temp directory
- If you open it with monodevelop or VS, it will generate a heap of engineering files.
In the end it's about this:
There are many binaries in the unity project that frequently cause conflicts, and files in the library directory change every time the Unity editor opens, often in conflict.
To ensure that fewer conflicts need to be done:
- The minimum amount of files that will be required to create a unity project refers to the repository
- Reduce the existence of files by two
Import the Unity project into the repository and ensure the least conflicting methods
Modify the default version management method for unity projects, Edit->project settings->editor open the Settings panel
, version control is set to the model meta files, which indicates that the resource version is recorded as a meta file.
The default is disabled, which can cause problems in the absence of the library directory (the library will not mention the repository later).
Text scene file, Edit->project settings->editor open the Settings panel
Setting the mode of asset serialization is Force Text, which means that the unity file is saved in plain text form.
Both mixed and force binaries are binary and are not conducive to versioning.
Upload assets, projectsettings directories to SVN, git, or other repository
When someone checkout these two catalogs, the first time you open Project in Unity Editor ... The library directory is automatically generated, so the library does not need to be included in version management
(EXT) Unity3d Project version management scheme