using GLTF.Schema; using System; using UnityEngine; namespace UnityGLTF.Cache { public class TextureCacheData : IDisposable { public GLTFTexture TextureDefinition; public Texture2D Texture; public bool IsLinear; public bool IsNormal; /// /// Unloads the textures in this cache. /// public void Dispose() { if (Texture != null) { UnityEngine.Object.Destroy(Texture); Texture = null; } } } }