modular-avatar/Runtime/ArmatureAwase/DeferDestroy.cs
2024-02-18 21:56:59 +09:00

18 lines
330 B
C#

#region
using System;
#endregion
namespace nadena.dev.modular_avatar.core.armature_lock
{
internal static class DeferDestroy
{
internal static void DeferDestroyObj(IDisposable obj)
{
#if UNITY_EDITOR
UnityEditor.EditorApplication.delayCall += () => obj.Dispose();
#endif
}
}
}