Browse Source

新增JSON解析窗口小工具

master
DESKTOP-B25GA9E\W35 2 years ago
parent
commit
aa81339e13
  1. 8
      Assets/DataClass.meta
  2. 11
      Assets/DataClass/JsonConfig.json
  3. 7
      Assets/DataClass/JsonConfig.json.meta
  4. 8
      Assets/DataGenerateTools.meta
  5. 8
      Assets/DataGenerateTools/src.meta
  6. 8
      Assets/DataGenerateTools/src/JsonGenerate.meta
  7. 41
      Assets/DataGenerateTools/src/JsonGenerate/JsonFileLoaderEditor.cs
  8. 0
      Assets/DataGenerateTools/src/JsonGenerate/JsonFileLoaderEditor.cs.meta
  9. 23
      Assets/JsonIOTools/JsonIOEditor.cs
  10. 2
      Assets/MsgTransmitTools/src/QFrameCopy.cs
  11. 3
      ProjectSettings/ProjectSettings.asset

8
Assets/DataClass.meta

@ -0,0 +1,8 @@ @@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 3644ce574996b644884d6e66d8e72f3e
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

11
Assets/DataClass/JsonConfig.json

@ -0,0 +1,11 @@ @@ -0,0 +1,11 @@
{
"JXSoft.JsonIOUtilitySaveDate" : {
"timeStamp" : 1675050013,
"timeStr" : "2023-01-30 11:40:12"
},
"MyItemData" : {
"itemId" : 1,
"itemName" : "Sword"
}
}

7
Assets/DataClass/JsonConfig.json.meta

@ -0,0 +1,7 @@ @@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 34ecd98e89607f746bfe5fd5bafa3b9c
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

8
Assets/DataGenerateTools.meta

@ -0,0 +1,8 @@ @@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 32568cdabd61ecc4e9a2b145df9bac73
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

8
Assets/DataGenerateTools/src.meta

@ -0,0 +1,8 @@ @@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 9d539c58668943b4888f82174d56213e
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

8
Assets/DataGenerateTools/src/JsonGenerate.meta

@ -0,0 +1,8 @@ @@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: ca7060889bf853f4b8e18af5c161ad4f
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

41
Assets/DataGenerateTools/src/JsonGenerate/JsonFileLoaderEditor.cs

@ -0,0 +1,41 @@ @@ -0,0 +1,41 @@
using System.Collections;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;
using LitJson;
using UnityEditor.AnimatedValues;
#if UNITY_EDITOR
namespace JXSoft {
public class JsonFileLoaderEditor : EditorWindow
{
public TextAsset JsonFile;
AnimBool m_ShowExtraFields;
string m_String;
Color m_Color = Color.white;
int m_Number = 0;
[MenuItem("JXSoft/Generate/JsonFileLoader")]
static void Init()
{
var window = GetWindow<JsonFileLoaderEditor>();
window.Show();
}
void OnEnable()
{
m_ShowExtraFields = new AnimBool(true);
m_ShowExtraFields.valueChanged.AddListener(Repaint);
}
void OnGUI()
{
JsonFile = (TextAsset)EditorGUILayout.ObjectField("JsonFile", JsonFile, typeof(TextAsset), true);
if (GUILayout.Button("AnalyzeJsonFile"))
{
}
}
}
}
#endif

0
Assets/JsonIOTools/JsonIOEditor.cs.meta → Assets/DataGenerateTools/src/JsonGenerate/JsonFileLoaderEditor.cs.meta

23
Assets/JsonIOTools/JsonIOEditor.cs

@ -1,23 +0,0 @@ @@ -1,23 +0,0 @@
using System.Collections;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;
#if UNITY_EDITOR
public class JsonIOEditor : EditorWindow
{
public TextAsset JsonSaved;
[MenuItem("JXSoft/JsonIOTools/JsonLoader")]
static void Init()
{
var window = GetWindow<JsonIOEditor>();
window.Show();
}
void OnGUI()
{
JsonSaved = (TextAsset)EditorGUILayout.ObjectField("SaveData", JsonSaved,typeof(TextAsset), true);
}
}
#endif

2
Assets/MsgTransmitTools/src/QFrameCopy.cs

@ -16,8 +16,6 @@ @@ -16,8 +16,6 @@
* https://gitee.com/JingChanChangFan/hk_-unity-tools
* () https://space.bilibili.com/656352/
*
* Community
* QQ Group: 623597263
* Latest Update: 2022.8.8 10:24 List=>HashSet
****************************************************************************/

3
ProjectSettings/ProjectSettings.asset

@ -627,7 +627,8 @@ PlayerSettings: @@ -627,7 +627,8 @@ PlayerSettings:
gcIncremental: 0
assemblyVersionValidation: 1
gcWBarrierValidation: 0
apiCompatibilityLevelPerPlatform: {}
apiCompatibilityLevelPerPlatform:
Standalone: 3
m_RenderingPath: 1
m_MobileRenderingPath: 1
metroPackageName: Template_3D

Loading…
Cancel
Save