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

27 lines
424 B
C#

using System;
using Unity.Collections;
namespace UnityGLTF.Cache
{
public class BufferCacheData : IDisposable
{
public uint ChunkOffset { get; set; }
public System.IO.Stream Stream { get; set; }
public NativeArray<byte> bufferData { get; set; }
public void Dispose()
{
if (Stream != null)
{
#if !WINDOWS_UWP
Stream.Close();
#else
Stream.Dispose();
#endif
Stream = null;
}
}
}
}