tuyoogame / YooAsset

unity3d resources management system
https://www.yooasset.com/
Apache License 2.0
2.34k stars 460 forks source link

加载一个texture 或者 sprite 成功后,调用Handle.release 无法释放 texture 或 sprite 内存,请问是什么原因。 #257

Open 751500365 opened 5 months ago

751500365 commented 5 months ago

一个 texture 是单独一个bundle ,加载成功后 主动调用Handle.release ,此texture 不会释放,是什么原因,

751500365 commented 5 months ago

screenshot-20240319-161757

gmhevinci commented 5 months ago

handle.release方法只是释放资源句柄,底层引用计数减1. 还需要调用resourcepakcage .Unloadunused()方法来卸载引用计数为零的AB