[engine] 新动态图集实现

This commit is contained in:
SmallMain
2022-06-25 00:48:16 +08:00
parent 9fca60746c
commit 8b0ef377a9
10 changed files with 815 additions and 172 deletions

View File

@@ -828,6 +828,11 @@ let SpriteFrame = cc.Class(/** @lends cc.SpriteFrame# */{
handle.result.push(this, '_textureSetter', textureUuid);
}
}
},
destroy() {
cc.dynamicAtlasManager && cc.dynamicAtlasManager.deleteSpriteFrame(this);
this._super();
}
});