Files
Shopkeeper/Packages/org.khronos.unitygltf/Runtime/Scripts/Cache/TextureCacheData.cs
Caleb Sandford deQuincey e9c9bc4409 initial game submission
2025-06-11 13:04:35 +01:00

27 lines
458 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;
public bool IsNormal;
/// <summary>
/// Unloads the textures in this cache.
/// </summary>
public void Dispose()
{
if (Texture != null)
{
UnityEngine.Object.Destroy(Texture);
Texture = null;
}
}
}
}