export-table-pulgin-csharp 1.1.116 → 1.1.117

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -121,7 +121,7 @@ function exportUJsonLoader(paras) {
121
121
  using UnityEngine.AddressableAssets;
122
122
  using System.Threading.Tasks;
123
123
  using UnityEngine;
124
- // using ${jsonToolNamespace};
124
+ using ${jsonToolNamespace};
125
125
 
126
126
  namespace ${exportNamespace}
127
127
  {
@@ -149,7 +149,7 @@ namespace ${exportNamespace}
149
149
  ${RowClass}[] jsonObjs;
150
150
  try
151
151
  {
152
- jsonObjs = JsonUtility.FromJson<${RowClass}[]>(configJson.text);
152
+ jsonObjs = JSON.parse<${RowClass}[]>(configJson.text);
153
153
  }
154
154
  catch(System.Exception ex)
155
155
  {
@@ -179,7 +179,7 @@ namespace ${exportNamespace}
179
179
  var configJson = UnityEditor.AssetDatabase.LoadAssetAtPath<TextAsset>(loadUrl);
180
180
  if (configJson != null)
181
181
  {
182
- var jsonObjs = JsonUtility.FromJson<${RowClass}[]>(configJson.text);
182
+ var jsonObjs = JSON.parse<${RowClass}[]>(configJson.text);
183
183
  var configs = ${RowClass}.Configs;
184
184
  configs.Clear();
185
185
  configs.AddRange(jsonObjs);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "export-table-pulgin-csharp",
3
- "version": "1.1.116",
3
+ "version": "1.1.117",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {},
@@ -117,7 +117,7 @@ export function exportUJsonLoader(paras: HandleSheetParams): string | null {
117
117
  using UnityEngine.AddressableAssets;
118
118
  using System.Threading.Tasks;
119
119
  using UnityEngine;
120
- // using ${jsonToolNamespace};
120
+ using ${jsonToolNamespace};
121
121
 
122
122
  namespace ${exportNamespace}
123
123
  {
@@ -145,7 +145,7 @@ namespace ${exportNamespace}
145
145
  ${RowClass}[] jsonObjs;
146
146
  try
147
147
  {
148
- jsonObjs = JsonUtility.FromJson<${RowClass}[]>(configJson.text);
148
+ jsonObjs = JSON.parse<${RowClass}[]>(configJson.text);
149
149
  }
150
150
  catch(System.Exception ex)
151
151
  {
@@ -175,7 +175,7 @@ namespace ${exportNamespace}
175
175
  var configJson = UnityEditor.AssetDatabase.LoadAssetAtPath<TextAsset>(loadUrl);
176
176
  if (configJson != null)
177
177
  {
178
- var jsonObjs = JsonUtility.FromJson<${RowClass}[]>(configJson.text);
178
+ var jsonObjs = JSON.parse<${RowClass}[]>(configJson.text);
179
179
  var configs = ${RowClass}.Configs;
180
180
  configs.Clear();
181
181
  configs.AddRange(jsonObjs);