Commit 6fe76fb2 authored by limingzhe's avatar limingzhe

fix: debug

parent 16078b72
...@@ -467,6 +467,7 @@ export abstract class middleLayerBase extends cc.Component { ...@@ -467,6 +467,7 @@ export abstract class middleLayerBase extends cc.Component {
const texture = this.textureList[i]; const texture = this.textureList[i];
const node = this.nodeList[i]; const node = this.nodeList[i];
atlas.decRef(); atlas.decRef();
cc.assetManager.releaseAsset(atlas); cc.assetManager.releaseAsset(atlas);
atlas.destroy(); atlas.destroy();
...@@ -475,8 +476,9 @@ export abstract class middleLayerBase extends cc.Component { ...@@ -475,8 +476,9 @@ export abstract class middleLayerBase extends cc.Component {
cc.assetManager.releaseAsset(asset); cc.assetManager.releaseAsset(asset);
asset.destroy(); asset.destroy();
// node.active = false;
// node.removeFromParent(); node.active = false;
node.removeFromParent();
texture.decRef(); texture.decRef();
...@@ -570,6 +572,9 @@ export abstract class middleLayerBase extends cc.Component { ...@@ -570,6 +572,9 @@ export abstract class middleLayerBase extends cc.Component {
assetList = null; assetList = null;
textureList = null; textureList = null;
getDragonDisplayAssetList(node) { getDragonDisplayAssetList(node) {
const canvas = cc.find("Canvas");
const dragonDisplay = node.getComponent(dragonBones.ArmatureDisplay); const dragonDisplay = node.getComponent(dragonBones.ArmatureDisplay);
if (dragonDisplay) { if (dragonDisplay) {
const atlas = dragonDisplay.dragonAtlasAsset; const atlas = dragonDisplay.dragonAtlasAsset;
...@@ -591,6 +596,7 @@ export abstract class middleLayerBase extends cc.Component { ...@@ -591,6 +596,7 @@ export abstract class middleLayerBase extends cc.Component {
this.assetList.push(asset); this.assetList.push(asset);
this.textureList.push(atlas.texture); this.textureList.push(atlas.texture);
node.parent = canvas;
// this.assetObj[uuid] = true; // this.assetObj[uuid] = true;
console.log('汪汪汪: atlas.texture.nativeUrl = ' + atlas.texture.nativeUrl); console.log('汪汪汪: atlas.texture.nativeUrl = ' + atlas.texture.nativeUrl);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment