After called GetRepackedSkin,i called AtlasUtilities.ClearCache() and Resources.UnloadUnusedAssets,but here are still many textures name like (xxx-pma-) that have not been released as shown on the picture,These images are the scattered images used before packaging
As I changed and called the GetRepackedSkin() multiple times, more and more material and texture were produced,but every time I use this method, I called AtlasUtilities.ClearCache() and Resources.UnloadUnusedAssets,How do I release these resources?
I tried to make these changes in AtlasUtilities.
foreach (var texture in texturesToPack)
{
UnityEngine.Object.Destroy(texture);
}
texturesToPack.Clear();
after PackTextures,but it does not work.
my spine runtime version is 3.8
MemoryProfiler