From a79e6b4a5b0dc1d49acea4a9630772a0145c5365 Mon Sep 17 00:00:00 2001 From: ousttrue Date: Wed, 25 Jan 2023 18:23:55 +0900 Subject: [PATCH] ITextureExporter inherit IDisposable update ITextureExporter interface --- .../GLTF/IO/Runtime/Texture/Exporter/ITextureExporter.cs | 4 ++-- .../GLTF/IO/Runtime/Texture/Exporter/TextureExporter.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Assets/VRMShaders/GLTF/IO/Runtime/Texture/Exporter/ITextureExporter.cs b/Assets/VRMShaders/GLTF/IO/Runtime/Texture/Exporter/ITextureExporter.cs index e6bb6f0a0..bb132fcae 100644 --- a/Assets/VRMShaders/GLTF/IO/Runtime/Texture/Exporter/ITextureExporter.cs +++ b/Assets/VRMShaders/GLTF/IO/Runtime/Texture/Exporter/ITextureExporter.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System; using UnityEngine; namespace VRMShaders @@ -8,7 +8,7 @@ namespace VRMShaders /// /// glTF 拡張で Texture の用途を増やす必要がある場合は、この interface を継承して実装すればよい。 /// - public interface ITextureExporter + public interface ITextureExporter: IDisposable { /// /// 指定の Texture を、 sRGB 色空間の値を持つ Texture に出力するように指示する。 diff --git a/Assets/VRMShaders/GLTF/IO/Runtime/Texture/Exporter/TextureExporter.cs b/Assets/VRMShaders/GLTF/IO/Runtime/Texture/Exporter/TextureExporter.cs index 3b4229dc6..d2f1da2df 100644 --- a/Assets/VRMShaders/GLTF/IO/Runtime/Texture/Exporter/TextureExporter.cs +++ b/Assets/VRMShaders/GLTF/IO/Runtime/Texture/Exporter/TextureExporter.cs @@ -8,7 +8,7 @@ namespace VRMShaders /// glTF にエクスポートする変換方式を蓄えて index を確定させる。 /// Exporter の最後で Export() でまとめて変換する。 /// - public sealed class TextureExporter : IDisposable, ITextureExporter + public sealed class TextureExporter : ITextureExporter { private readonly ITextureSerializer _textureSerializer; private readonly List _exportingList = new List();