public void createDir(string parentPath) { string path = ""; //path = ExportUtil.getDataPath(string.Format("{0}/{1}", parentPath, m_subPath)); path = ExportUtil.getDataPath(m_subPath); if (!UtilPath.existDirectory(path)) { UtilPath.recurseCreateDirectory(path); } }
public static void BuildAssetBundles(BuildTarget target) { string outputPath = Path.Combine(UtilApi.kAssetBundlesOutputPath, ExportUtil.GetPlatformFolderForAssetBundles(target)); if (UtilPath.existDirectory(outputPath)) { UtilPath.deleteDirectory(outputPath); } if (!UtilPath.existDirectory(outputPath)) { UtilPath.createDirectory(outputPath); } BuildPipeline.BuildAssetBundles(outputPath, BuildAssetBundleOptions.UncompressedAssetBundle, target); }
// 创建所需要的所有的子目录 protected void createSubDir() { if (!string.IsNullOrEmpty(m_assetOutPath)) { string path = ""; path = ExportUtil.getWorkPath(m_assetOutPath); if (!UtilPath.existDirectory(path)) { UtilPath.recurseCreateDirectory(path); } } if (!string.IsNullOrEmpty(m_controllerOutPath)) { string path = ""; path = ExportUtil.getWorkPath(m_controllerOutPath); if (!UtilPath.existDirectory(path)) { UtilPath.recurseCreateDirectory(path); } } }