Exemple #1
0
        /// <summary>
        /// 获取场景输出路径
        /// </summary>
        public static string GetSceneOutputPath(string subPath)
        {
            var    sceneName = UtilityTools.GetFileName(EditorApplication.currentScene);
            string path      = null;

            if (string.IsNullOrEmpty(subPath))
            {
                path = string.Format("Assets/Export/Back/Output/{0}", sceneName);
                UtilityTools.CreateDir(path);
            }
            else
            {
                path = string.Format("Assets/Export/Back/Output/{0}/{1}", sceneName, subPath);
                UtilityTools.CreateDir(path);
            }
            return(path);
        }