export-table-pulgin-csharp 1.0.63 → 1.0.65

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,CAyEzE;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,CAgFzE;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"}
@@ -82,12 +82,19 @@ namespace MEEC.ExportedConfigs
82
82
  {
83
83
  public partial class ${RowClass}
84
84
  {
85
+ #if UNITY_EDITOR && ENABLE_CONFIG_LOG
86
+ static ${RowClass}()
87
+ {
88
+ Debug.Log("ReferConfig-${RowClass}");
89
+ }
90
+ #endif
85
91
  public static async Task Load()
86
92
  {
87
93
  var loadUrl="Assets/Bundles/GameConfigs/Auto/${fullName}.json";
88
94
  var configJson =
89
95
  #if UNITY_EDITOR
90
- Application.isPlaying ? await Addressables.LoadAssetAsync<TextAsset>(loadUrl).Task : UnityEditor.AssetDatabase.LoadAssetAtPath<TextAsset>(loadUrl);
96
+ Application.isPlaying ? await Addressables.LoadAssetAsync<TextAsset>(loadUrl).Task
97
+ : UnityEditor.AssetDatabase.LoadAssetAtPath<TextAsset>(loadUrl);
91
98
  #else
92
99
  await Addressables.LoadAssetAsync<TextAsset>(loadUrl).Task;
93
100
  #endif
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "export-table-pulgin-csharp",
3
- "version": "1.0.63",
3
+ "version": "1.0.65",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {
@@ -76,12 +76,19 @@ namespace MEEC.ExportedConfigs
76
76
  {
77
77
  public partial class ${RowClass}
78
78
  {
79
+ #if UNITY_EDITOR && ENABLE_CONFIG_LOG
80
+ static ${RowClass}()
81
+ {
82
+ Debug.Log("ReferConfig-${RowClass}");
83
+ }
84
+ #endif
79
85
  public static async Task Load()
80
86
  {
81
87
  var loadUrl="Assets/Bundles/GameConfigs/Auto/${fullName}.json";
82
88
  var configJson =
83
89
  #if UNITY_EDITOR
84
- Application.isPlaying ? await Addressables.LoadAssetAsync<TextAsset>(loadUrl).Task : UnityEditor.AssetDatabase.LoadAssetAtPath<TextAsset>(loadUrl);
90
+ Application.isPlaying ? await Addressables.LoadAssetAsync<TextAsset>(loadUrl).Task
91
+ : UnityEditor.AssetDatabase.LoadAssetAtPath<TextAsset>(loadUrl);
85
92
  #else
86
93
  await Addressables.LoadAssetAsync<TextAsset>(loadUrl).Task;
87
94
  #endif