[engine] 为动态图集管理器增加一些实用接口(getUnusedAtlas, deleteAtlas, destroyUnusedAtlases)

This commit is contained in:
SmallMain
2024-09-04 17:10:08 +08:00
parent 4000e01fa9
commit 2a97bc3a57
3 changed files with 34 additions and 1 deletions

View File

@@ -61,10 +61,11 @@ export class MultiBatcher {
/**
* 重置多纹理材质数组,再次使用请先初始化
* 重置
*/
reset() {
this.handlers.length = 0;
this.nextHandler = null!;
}
}