New file |
| | |
| | | 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成功");
|
| | |
|
| | | } |
| | | |
| | | |
| | | } |