Commit 6fe76fb2 authored by limingzhe's avatar limingzhe

fix: debug

parent 16078b72
......@@ -467,6 +467,7 @@ export abstract class middleLayerBase extends cc.Component {
const texture = this.textureList[i];
const node = this.nodeList[i];
atlas.decRef();
cc.assetManager.releaseAsset(atlas);
atlas.destroy();
......@@ -475,8 +476,9 @@ export abstract class middleLayerBase extends cc.Component {
cc.assetManager.releaseAsset(asset);
asset.destroy();
// node.active = false;
// node.removeFromParent();
node.active = false;
node.removeFromParent();
texture.decRef();
......@@ -570,6 +572,9 @@ export abstract class middleLayerBase extends cc.Component {
assetList = null;
textureList = null;
getDragonDisplayAssetList(node) {
const canvas = cc.find("Canvas");
const dragonDisplay = node.getComponent(dragonBones.ArmatureDisplay);
if (dragonDisplay) {
const atlas = dragonDisplay.dragonAtlasAsset;
......@@ -591,6 +596,7 @@ export abstract class middleLayerBase extends cc.Component {
this.assetList.push(asset);
this.textureList.push(atlas.texture);
node.parent = canvas;
// this.assetObj[uuid] = true;
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