Exemplo n.º 1
0
    public static void CopyProject()
    {
        //先删除旧工程
        MyFileUtil.DeleteDir(CopyProjectTargetDir);

        string srcDir = MyFileUtil.GetParentDir(Application.dataPath);

        MyFileUtil.CopyDir(srcDir, CopyProjectTargetDir);

        AssetDatabase.Refresh();
        Debug.Log("拷贝工程结束");
    }