Exemple #1
0
    /// <summary>
    /// 获取导出资源路径目录
    /// </summary>
    /// <returns></returns>
    public static string GetExportPath()
    {
        BuildTarget platfrom = EditorUserBuildSettings.activeBuildTarget;
        string      basePath = AppSetting.ExportResBaseDir;

        if (File.Exists(basePath))
        {
            MyEditorTools.ShowDialog("路径配置错误: " + basePath);
            throw new System.Exception("路径配置错误");
        }
        string path         = null;
        var    platformName = Utility.GetPlatformName();

        path = basePath + platformName + "/";
        MyEditorTools.CreateDir(path);
        return(path);
    }