@cc-component/cc-core 1.6.3 → 1.6.4

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.
@@ -148,7 +148,7 @@ export class EffectSingleCase {
148
148
  if (params && params.bundle) bundleName = params.bundle;
149
149
  node = instantiate(App.GetAsset(bundleName, params.path))//ViewUtil.createPrefabNode(path, bundleName);
150
150
  // //@ts-ignore
151
- // node.asset_path = path;
151
+ node.asset_path = App.res.getAssetKey(params.path, params.bundle)
152
152
  // if (params && params.isPlayFinishedRelease) {
153
153
  // node.addComponent(EffectFinishedRelease);
154
154
  // }
@@ -292,7 +292,7 @@ export class EffectSingleCase {
292
292
  this.res.set(params.path, params.bundle);
293
293
  const prefab = await App.LoadAsset(params.bundle, params.path, Prefab);
294
294
  const node = instantiate(prefab)
295
-
295
+ node.asset_path = App.res.getAssetKey(params.path, params.bundle)
296
296
  this.updateNode(node, params)
297
297
  resolve(node);
298
298
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cc-component/cc-core",
3
- "version": "1.6.3",
3
+ "version": "1.6.4",
4
4
  "engine": ">=3.8.6",
5
5
  "description": "系统组件添加常用扩展方法",
6
6
  "main": "index.ts",