Does anyone know the syntax for an IDisposable class in UnityScript?
The C# ~ callback doesn't work.
Thanks,
-Aubrey
Mike_3
2
I'm not sure what callback you're talking about, but an IDisposable class is just one that implements the IDisposable interface and has a public Dispose method:
public class MyClass : IDisposable
{
public void Dispose()
{
}
}
Edit:
IDisposable isn't what you're looking for at all, you're wanting the finalizer syntax. Try this instead:
function Finalize()
{
}