Files
UmaViewer/Assets/Plugins/UnityGLTF/Runtime/Scripts/Cache/TextureCacheData.cs
T
左右看 0d848e4d07 bug fix
2023-06-28 00:35:46 +08:00

26 lines
432 B
C#

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