From 13f2cb3a695a8d7608759f3515e3b52349de3337 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期三, 03 四月 2024 18:30:16 +0800
Subject: [PATCH] 0312 增加导出versionconfigex.txt 工具
---
Assets/Editor/Tool/ExportVersionConfigEx.cs.meta | 11 +++++++++++
Assets/Editor/Tool/ExportVersionConfigEx.cs | 31 +++++++++++++++++++++++++++++++
2 files changed, 42 insertions(+), 0 deletions(-)
diff --git a/Assets/Editor/Tool/ExportVersionConfigEx.cs b/Assets/Editor/Tool/ExportVersionConfigEx.cs
new file mode 100644
index 0000000..94f2786
--- /dev/null
+++ b/Assets/Editor/Tool/ExportVersionConfigEx.cs
@@ -0,0 +1,31 @@
+锘縰sing 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 鎻愪緵缁橝OT鍚姩鏃朵娇鐢�
+ 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鎴愬姛");
+
+ }
+
+
+}
diff --git a/Assets/Editor/Tool/ExportVersionConfigEx.cs.meta b/Assets/Editor/Tool/ExportVersionConfigEx.cs.meta
new file mode 100644
index 0000000..0d7a3a0
--- /dev/null
+++ b/Assets/Editor/Tool/ExportVersionConfigEx.cs.meta
@@ -0,0 +1,11 @@
+fileFormatVersion: 2
+guid: 03f4ff7f9c1e0d54087608e29f731e21
+MonoImporter:
+ externalObjects: {}
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
--
Gitblit v1.8.0