export-table-pulgin-csharp 1.0.60 → 1.0.61

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.
@@ -1 +1 @@
1
- {"version":3,"file":"ExportUnityCSJsonPlugin.d.ts","sourceRoot":"","sources":["../src/ExportUnityCSJsonPlugin.ts"],"names":[],"mappings":"AACA,OAAO,EAAO,iBAAiB,EAA+B,UAAU,EAAE,iBAAiB,EAAe,MAAM,kBAAkB,CAAA;AAMlI,wBAAgB,WAAW,CAAC,KAAK,EAAE,iBAAiB,GAAG,MAAM,GAAG,IAAI,CA+CnE;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,iBAAiB,GAAG,MAAM,GAAG,IAAI,CA0CzE;AAED,qBAAa,iBAAkB,SAAQ,UAAU;IAChD,IAAI,SAAU;IACd,IAAI,EAAE,MAAM,EAAE,CAAY;IAE1B,WAAW,CAAC,KAAK,EAAE,iBAAiB;IAmBpC,WAAW,CAAC,KAAK,EAAE,iBAAiB,GAAG,IAAI;CAsB3C"}
1
+ {"version":3,"file":"ExportUnityCSJsonPlugin.d.ts","sourceRoot":"","sources":["../src/ExportUnityCSJsonPlugin.ts"],"names":[],"mappings":"AACA,OAAO,EAAO,iBAAiB,EAA+B,UAAU,EAAE,iBAAiB,EAAe,MAAM,kBAAkB,CAAA;AAMlI,wBAAgB,WAAW,CAAC,KAAK,EAAE,iBAAiB,GAAG,MAAM,GAAG,IAAI,CA+CnE;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,iBAAiB,GAAG,MAAM,GAAG,IAAI,CA2CzE;AAED,qBAAa,iBAAkB,SAAQ,UAAU;IAChD,IAAI,SAAU;IACd,IAAI,EAAE,MAAM,EAAE,CAAY;IAE1B,WAAW,CAAC,KAAK,EAAE,iBAAiB;IAmBpC,WAAW,CAAC,KAAK,EAAE,iBAAiB,GAAG,IAAI;CAsB3C"}
@@ -76,6 +76,7 @@ function exportUJsonLoader(paras) {
76
76
  using UnityEngine.AddressableAssets;
77
77
  using System.Threading.Tasks;
78
78
  using UnityEngine;
79
+ using lang.json;
79
80
 
80
81
  namespace MEEC.ExportedConfigs
81
82
  {
@@ -87,7 +88,7 @@ namespace MEEC.ExportedConfigs
87
88
  var configJson = await Addressables.LoadAssetAsync<TextAsset>(loadUrl).Task;
88
89
  if (configJson != null)
89
90
  {
90
- var jsonObjs = JsonUtility.FromJson<${RowClass}[]>(configJson.text);
91
+ var jsonObjs = JSON.parse<${RowClass}[]>(configJson.text);
91
92
  var configs = ${RowClass}.Configs;
92
93
  configs.Clear();
93
94
  configs.AddRange(jsonObjs);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "export-table-pulgin-csharp",
3
- "version": "1.0.60",
3
+ "version": "1.0.61",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {
@@ -70,6 +70,7 @@ export function exportUJsonLoader(paras: HandleSheetParams): string | null {
70
70
  using UnityEngine.AddressableAssets;
71
71
  using System.Threading.Tasks;
72
72
  using UnityEngine;
73
+ using lang.json;
73
74
 
74
75
  namespace MEEC.ExportedConfigs
75
76
  {
@@ -81,7 +82,7 @@ namespace MEEC.ExportedConfigs
81
82
  var configJson = await Addressables.LoadAssetAsync<TextAsset>(loadUrl).Task;
82
83
  if (configJson != null)
83
84
  {
84
- var jsonObjs = JsonUtility.FromJson<${RowClass}[]>(configJson.text);
85
+ var jsonObjs = JSON.parse<${RowClass}[]>(configJson.text);
85
86
  var configs = ${RowClass}.Configs;
86
87
  configs.Clear();
87
88
  configs.AddRange(jsonObjs);