Using External Version Control Systems with Unity【使用第三方版本控制工具】
来源:互联网 发布:阿里云备案域名出售 编辑:程序博客网 时间:2024/05/17 05:19
转自:http://unity3d.com/support/documentation/Manual/ExternalVersionControlSystemSupport.html
Using External Version Control Systems with Unity
Unity offers an Asset Server add-on product for easy integrated versioning of your projects. If you for some reason are not able use the Unity Asset Server, it is possible to store your project in any other version control system, such as Subversion, Perforce or Bazaar. This requires some initial manual setup of your project. In addition, moving and renaming of assets needs to be performed using your version control client and not inside Unity.
External Version Control is available in all versions of Unity.
Before checking your project in, you have to tell Unity to modify the project structure slightly to make it compatible with storing assets in an external version control system. This is done by selecting Metafiles in the dropdown for Version Control. This will create a text file for every asset in the Assets
directory containing the necessary bookkeeping information required by Unity. The files will have a .meta
file extension with the first part being the full file name of the asset it is associated with. When moving or renaming assets in the version control system, make sure you also move or rename the .meta
file accordingly.
When checking the project into a version control system, you should add the Assets
and the ProjectSettings
directories to the system. The Library
directory should be completely ignored - when using external version control, it's only a local cache of imported assets.
When creating new assets, make sure both the asset itself and the associated .meta
file is added to version control.
Example: Creating a new project and importing it to a Subversion repository.
First, let's assume that we have a subversion repository at svn://my.svn.server.com/
and want to create a project atsvn://my.svn.server.com/MyUnityProject
. Then follow these steps to create the initial import in the system:
- Create a new project inside Unity and lets call it
InitialUnityProject
. You can add any initial assets here or add them later on. - Enable Meta files in
- Quit Unity (We do this to assure that all the files are saved).
- Delete the
Library
directory inside your project directory. - Import the project directory into Subversion. If you are using the command line client, this is done like this from the directory where your initial project is located:
svn import -m"Initial project import" InitialUnityProject svn://my.svn.server.com/MyUnityProject
If successful, the project should now be imported into subversion and you can delete theInitialUnityProject
directory if you wish. - Check out the project back from subversion
svn co svn://my.svn.server.com/MyUnityProject
And check that theAssets
andProjectSettings
directory are versioned. - Open the checked out project with Unity by launching it while holding down the Option or the left Alt key. Opening the project will recreate the
Library
directory in step 4 above. - Optional: Set up an ignore filter for the unversioned
Library
directory:svn propedit svn:ignore MyUnityProject/
Subversion will open a text editor. Add the Library directory. - Finally commit the changes. The project should now be set up and ready:
svn ci -m"Finishing project import" MyUnityProject
- Using External Version Control Systems with Unity【使用第三方版本控制工具】
- Using Beyond Compare with Version Control Systems
- Using Beyond Compare with Version Control Systems
- Using Version Control with Unity
- Using Beyond Compare with Version Control Systems(zt)
- Using Beyond Compare with Version Control Systems(ZZ)
- Using Beyond Compare with Version Control Systems under OSX
- unity使用的第三方工具
- 使用第三方工具
- Version Control with Subversion
- MVCC(Multi-Version Concurrency Control)多版本并发控制
- android studio 重新切换版本控制 Enable Version Control Integration
- Pragmatic Version Control: Using Subversion
- Using Github for version control
- unity使用第三方sdk图标问题
- 最好用的Unity版本控制工具
- C++ GUI Programming with Qt4 Second Edition 之 B.2 使用第三方编译工具
- Pragmatic Version Control with CVS
- classLoader深入解析
- Io流的操作。
- 好地方
- QQ有一人性化的改进
- 快排详解
- Using External Version Control Systems with Unity【使用第三方版本控制工具】
- ubuntu11.10下配置android的Eclipse开发环境
- c/c++中的堆栈分析
- log4j笔记
- 浅谈android的selector背景选择器
- 升级日志_2012022-20120228
- Common下MessageBox.cs
- 制作USB启动PE
- 两个脚本文件