Unity 打开文件夹

打开Windows的资源管理器

按照path打开文件夹

        /// 
        /// // *** 打开文件夹
        /// 
        public static void OpenDirectory(string path)
        {
            if (string.IsNullOrEmpty(path)) return;

            path = path.Replace("/", "\\");
            if (!Directory.Exists(path))
            {
                Debug.LogError("No Directory: " + path);
                return;
            }
            System.Diagnostics.Process.Start("explorer.exe", path);
        }

你可能感兴趣的:(Unity 打开文件夹)