public void OnDisable()
        {
            SceneView.duringSceneGui           -= OnSceneViewGUI;
            EditorApplication.projectChanged   -= HierarchyOrProjectWindowWasChanged;
            EditorApplication.hierarchyChanged -= HierarchyOrProjectWindowWasChanged;
            Undo.undoRedoPerformed             -= UndoRedoPerformed;

            if (m_ParticleEffectUI != null)
            {
                m_ParticleEffectUI.Clear();
                m_ParticleEffectUI.ClearSelectedSystems();
            }

            ShortcutIntegration.instance.contextManager.DeregisterToolContext(m_ShortcutContext);
        }
 internal void Clear()
 {
     m_Target = null;
     if (m_ParticleEffectUI != null)
     {
         m_ParticleEffectUI.Clear();
         m_ParticleEffectUI.ClearSelectedSystems();
         m_ParticleEffectUI = null;
     }
 }