Merge pull request #2211 from tsgcpp/feature/dispose_texture_cache_in_texturefactroy

TextureFactoryにて所有権が譲渡されていないTextureを破棄する
This commit is contained in:
ousttrue
2024-01-09 13:46:47 +09:00
committed by GitHub

View File

@@ -36,6 +36,10 @@ namespace VRMShaders
public void Dispose()
{
foreach (var (k, v) in _textureCache)
{
UnityObjectDestroyer.DestroyRuntimeOrEditor(v);
}
_textureCache.Clear();
}