public void OnDisable() { s_AnimationWindows.Remove(this); if (m_CurveEditor != null) { m_CurveEditor.curvesUpdated -= SaveChangedCurvesFromCurveEditor; m_CurveEditor.OnDisable(); } if (m_DopeSheet != null) { m_DopeSheet.OnDisable(); } m_State.OnDisable(); }
public void OnDisable() { s_AnimationWindows.Remove(this); if (m_CurveEditor != null) { m_CurveEditor.curvesUpdated -= SaveChangedCurvesFromCurveEditor; m_CurveEditor.OnDisable(); } if (m_DopeSheet != null) { m_DopeSheet.OnDisable(); } m_State.OnDisable(); ShortcutIntegration.instance.contextManager.DeregisterToolContext(m_AnimationShortcutContex); }
public void OnDisable() { s_AnimationWindows.Remove(this); if (m_CurveEditor != null) { m_CurveEditor.curvesUpdated -= SaveChangedCurvesFromCurveEditor; m_CurveEditor.OnDisable(); } if (m_DopeSheet != null) { m_DopeSheet.OnDisable(); } m_State.OnDisable(); EditorApplication.globalEventHandler -= HandleGlobalHotkeys; }