public static string GetExportPath(BuildTarget platfrom) { string basePath = Path.GetFullPath(Application.dataPath + "/" + CCosmosEngine.GetConfig("AssetBundleRelPath") + "/"); if (!Directory.Exists(basePath)) { CBuildTools.ShowDialog("路径配置错误: " + basePath); throw new System.Exception("路径配置错误"); } string path = null; switch (platfrom) { case BuildTarget.Android: case BuildTarget.iPhone: case BuildTarget.StandaloneWindows: path = basePath + CResourceModule.GetBuildPlatformName() + "/"; break; default: CBuildTools.ShowDialog("构建平台配置错误"); throw new System.Exception("构建平台配置错误"); } return(path); }
// Prefab Asset打包版本號記錄 public static string GetBuildVersionTab() { return(Application.dataPath + "/" + CCosmosEngineDef.ResourcesBuildInfosDir + "/ArtBuildResource_" + CResourceModule.GetBuildPlatformName() + ".txt"); }