0.前言
对于小型游戏团队来说,SVN应该是团队协作工具的首选,因为他上手简单,对于不懂程序的其他成员来说,学习难度较低,但是每次提交、更新都需要从Unity切换到文件夹,个人感觉比较繁琐,所以在此分享一个集成到Unity中的SVN菜单工具,这样团队所有人都可以无门槛使用,并且节省很多时间了。
1.具体实现
using Boo.Lang;
using UnityEditor;
using UnityEngine;
public class SVNTool : Editor
{
[MenuItem("SVN/提交",false,1)]
static void SVNCommit(){
List<string> pathList = new List<string> ();
string basePath = SVNProjectPath + "/Assets";
pathList.Add (basePath);
pathList.Add (SVNProjectPath+"/ProjectSettings");
string commitPath = string.Join ("*", pathList.ToArray ());
ProcessCommand ("TortoiseProc.exe",