[OnEditorDestroy]

Attribute used for invoking a method when the custom Editor is destroyed.

Examples

public class OnEditorDestroyExample : MonoBehaviour
{
    [OnEditorDestroy]
    private void HandleEditorDestroy()
    {
        Debug.Log("Editor destroyed for this component");
    }
}