DESKTOP-B25GA9E\W35
2 years ago
11 changed files with 93 additions and 26 deletions
@ -0,0 +1,8 @@
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2 |
||||
guid: 3644ce574996b644884d6e66d8e72f3e |
||||
folderAsset: yes |
||||
DefaultImporter: |
||||
externalObjects: {} |
||||
userData: |
||||
assetBundleName: |
||||
assetBundleVariant: |
@ -0,0 +1,11 @@
@@ -0,0 +1,11 @@
|
||||
|
||||
{ |
||||
"JXSoft.JsonIOUtilitySaveDate" : { |
||||
"timeStamp" : 1675050013, |
||||
"timeStr" : "2023-01-30 11:40:12" |
||||
}, |
||||
"MyItemData" : { |
||||
"itemId" : 1, |
||||
"itemName" : "Sword" |
||||
} |
||||
} |
@ -0,0 +1,7 @@
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2 |
||||
guid: 34ecd98e89607f746bfe5fd5bafa3b9c |
||||
DefaultImporter: |
||||
externalObjects: {} |
||||
userData: |
||||
assetBundleName: |
||||
assetBundleVariant: |
@ -0,0 +1,8 @@
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2 |
||||
guid: 32568cdabd61ecc4e9a2b145df9bac73 |
||||
folderAsset: yes |
||||
DefaultImporter: |
||||
externalObjects: {} |
||||
userData: |
||||
assetBundleName: |
||||
assetBundleVariant: |
@ -0,0 +1,8 @@
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2 |
||||
guid: 9d539c58668943b4888f82174d56213e |
||||
folderAsset: yes |
||||
DefaultImporter: |
||||
externalObjects: {} |
||||
userData: |
||||
assetBundleName: |
||||
assetBundleVariant: |
@ -0,0 +1,8 @@
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2 |
||||
guid: ca7060889bf853f4b8e18af5c161ad4f |
||||
folderAsset: yes |
||||
DefaultImporter: |
||||
externalObjects: {} |
||||
userData: |
||||
assetBundleName: |
||||
assetBundleVariant: |
@ -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 |
@ -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 |
Loading…
Reference in new issue