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
|
-
|
|
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 =
|
|
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 =
|
|
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
|
@@ -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
|
-
|
|
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 =
|
|
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 =
|
|
178
|
+
var jsonObjs = JSON.parse<${RowClass}[]>(configJson.text);
|
|
179
179
|
var configs = ${RowClass}.Configs;
|
|
180
180
|
configs.Clear();
|
|
181
181
|
configs.AddRange(jsonObjs);
|