Unity3D-RPG項目實戰(2):使用SVN管理Unity項目

來源:互聯網
上載者:User

標籤:unity3d   svn   


Unity提供了自己的XXXServer,不過大家評論好像不是很好用,主要是不支援branch等我們做項目的重要特性;他還推薦Perforce這樣高大上的版本管理系統,不過都很貴。所以我還是打算使用比較習慣的SVN來管理。

需要版本管理的目錄

建立一個Unity Project之後,發現產生了很多目錄和檔案,其中只有兩個是需要版本管理的:Assets、ProjectSettings。其他的都是自動產生的:

  • *.csproj,*.sln這些IDE的工程檔案是自動產生的;
  • Library,主要存的是一個本地的Cache檔案,不要加到版本管理中;
  • Tem,這個是Build過程中產生的檔案;


Unity Project Settings

為了配合SVN,需要對Unity工程做一些設定:

  •  菜單:Edit->Project Settings->Editor:Version Control 選擇為[Visible Meta Files];
  •  菜單:Editor-> Project Settings->Editor:Asset Serialization Mode選擇為:[Force Text]
  •  菜單:Edit->Preferences -> Packages:Repository選擇為[External];
參考資料

  • http://unity3d.com/learn/tutorials/modules/beginner/architecture/folders-in-version-control
  • http://docs.unity3d.com/Manual/ExternalVersionControlSystemSupport.html

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.