Skip to content

Instantly share code, notes, and snippets.

View Alex-Galvez's full-sized avatar

Álex Gálvez Alex-Galvez

View GitHub Profile
@Alex-Galvez
Alex-Galvez / DisposableClass.cs
Created April 22, 2026 15:44
Boilerplate for the standard IDisposable pattern. Provides a safe mechanism to release both managed and unmanaged resources in Unity.
using System;
namespace RilexStudio.Utils.RuntimeData
{
public interface IDisposableClass : IDisposable
{
bool Disposed { get; }
}
/// <summary>