Assets/Plugins/Unity.DSPGraph/Runtime/Extensions/DSPGraphExtensions.cs
/// <summary>
/// This is our last chance to clean up native allocations.
/// It will be called after reflection data is already gone,
/// so we can't run dispose jobs etc.
/// </summary>
This is our last chance to clean up native allocations.
It will be called after reflection data is already gone,
so we can't run dispose jobs etc.
This is our last chance to clean up native allocations . It will be called after reflection data is already gone so we can ' t run dispose jobs etc .
private static void OnDomainUnload(object sender, EventArgs e)
        {
            if (!s_Initialized)
                return;
            s_Initialized = false;
            foreach (var graph in s_GraphRegistry)
                if (graph.Valid)
                    graph.Dispose(DSPGraph.DisposeBehavior.DeallocateOnly);
            s_GraphRegistry.Dispose();
            Utility.VerifyLeaks();
        }
private static void OnDomainUnload ( object sender , EventArgs e ) { if ( ! s_Initialized ) return ; s_Initialized = false ; foreach ( var graph in s_GraphRegistry ) if ( graph . Valid ) graph . Dispose ( DSPGraph . DisposeBehavior . DeallocateOnly ) ; s_GraphRegistry . Dispose ( ) ; Utility . VerifyLeaks ( ) ; }
This is our last chance to clean up native allocations.
This is our last chance to clean up native allocations .
sender
object
e
EventArgs