少年修仙传客户端基础资源
hch
2024-04-03 13f2cb3a695a8d7608759f3515e3b52349de3337
0312 增加导出versionconfigex.txt 工具
2个文件已添加
42 ■■■■■ 已修改文件
Assets/Editor/Tool/ExportVersionConfigEx.cs 31 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Assets/Editor/Tool/ExportVersionConfigEx.cs.meta 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Assets/Editor/Tool/ExportVersionConfigEx.cs
New file
@@ -0,0 +1,31 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
using System.IO;
using UnityEngine.UI;
using Snxxz.UI;
using System.Reflection;
// 导出文本规格,如长宽,字体,字号,颜色,描边,阴影,行间距
public class ExportVersionConfigEx : EditorWindow {
    [MenuItem("程序/同步VersionConfigEx.txt", false)]
    private static void Export()
    {
        //生成VersionConfigEx.txt 提供给AOT启动时使用
        var json = JsonUtility.ToJson(VersionConfig.Get());
        string versionConfigExFile = Application.dataPath + "/Resources/VersionConfigEx.txt";
        if (File.Exists(versionConfigExFile))
        {
            File.Delete(versionConfigExFile);
        }
        File.WriteAllText(versionConfigExFile, json);
        Debug.Log("同步VersionConfigEx.txt成功");
    }
}
Assets/Editor/Tool/ExportVersionConfigEx.cs.meta
New file
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 03f4ff7f9c1e0d54087608e29f731e21
MonoImporter:
  externalObjects: {}
  serializedVersion: 2
  defaultReferences: []
  executionOrder: 0
  icon: {instanceID: 0}
  userData:
  assetBundleName:
  assetBundleVariant: