diff --git a/Assets/VRMShaders/GLTF/IO/Runtime/Texture/Importer/TextureFactory.cs b/Assets/VRMShaders/GLTF/IO/Runtime/Texture/Importer/TextureFactory.cs index f197b4faf..e4590d546 100644 --- a/Assets/VRMShaders/GLTF/IO/Runtime/Texture/Importer/TextureFactory.cs +++ b/Assets/VRMShaders/GLTF/IO/Runtime/Texture/Importer/TextureFactory.cs @@ -36,6 +36,10 @@ namespace VRMShaders public void Dispose() { + foreach (var (k, v) in _textureCache) + { + UnityObjectDestroyer.DestroyRuntimeOrEditor(v); + } _textureCache.Clear(); }