OpenDirectory() public static method

public static OpenDirectory ( string path ) : void
path string
return void
Exemplo n.º 1
0
        public static void Test0()
        {
            string path = Application.dataPath + "/../../Archive/";

            path = path.Replace(@"/", @"\");
            EditorHelper.OpenDirectory(path);
        }
Exemplo n.º 2
0
        private static void m_BuildForIOS()
        {
            SwitchIOSPlatform();

            CommonSetting();

            BuildAssetBundle();

            if (config.isGenerateXcode)
            {
                //路径不能存在中文 否则xcode报错
                string filePath = ArchivePath();

                if (Directory.Exists(filePath))
                {
                    Directory.Delete(filePath, true);
                }

                BuildReport report = BuildPipeline.BuildPlayer(GetBuildScenes(), filePath, BuildTarget.iOS, BuildOptions.None);

                if (report.summary.result == BuildResult.Succeeded)
                {
                    EditorHelper.OpenDirectory(ArchivePath());
                    Debug.Log(PlayerSettings.productName + " xcode工程已生成");
                }
                else
                {
                    Debug.Log("Build Failed");
                }
            }
        }