Exemplo n.º 1
0
 private void OpenCsproj()
 {
     EditorMenu.OpenDirectory(Path.GetDirectoryName(cfg.ilProjPath));
     //Process p = new Process();
     //p.StartInfo.FileName = cfg.ilProjPath;
     //p.Start();
 }
Exemplo n.º 2
0
        void CreateSettingJsonFile()
        {
            var sp = SavePath;

            if (File.Exists(sp) && false == EditorUtility.DisplayDialog("警告!", "已存在文件「setting.json」,是否覆盖?", "Yes", "No"))
            {
                return;
            }

            string jsonStr = LitJson.JsonMapper.ToJson(cfg.data);

            File.WriteAllText(sp, jsonStr);

            //打开目录
            EditorMenu.OpenDirectory(Path.GetDirectoryName(sp));
        }
Exemplo n.º 3
0
        void Create()
        {
            string filePath = ResJsonFilePath;

            //首先删除旧的
            if (File.Exists(filePath))
            {
                File.Delete(filePath);
            }



            ResVerVO res = new CreateResVO(ResJsonFileDir).Start();

            res.manifestName = cfg.manifestName;
            string jsonStr = LitJson.JsonMapper.ToJson(res);

            File.WriteAllText(filePath, jsonStr);

            //打开目录
            EditorMenu.OpenDirectory(ResJsonFileDir);
        }
Exemplo n.º 4
0
        void BuildAssetBundles()
        {
            if (cfg.publishMode == 1)
            {
                if (Directory.Exists(AssetBundleDir))
                {
                    //删除目标目录
                    Directory.Delete(AssetBundleDir, true);
                }
            }
            new AssetBundleBuilder(AssetBundleDir, ScanStartDir).Start();

            if (false == cfg.isKeepManifestFile)
            {
                FileSystem.DeleteFilesByExt(AssetBundleDir, ".manifest");
            }

            if (cfg.isOpenDirOnPublishComplete)
            {
                EditorMenu.OpenDirectory(AssetBundleDir);
            }
        }