protected virtual void OnDisable() { #if UNITY_2021_2_OR_NEWER if (!Target.HideOffsetInInspector) { CinemachineSceneToolUtility.UnregisterTool(typeof(FollowOffsetTool)); } #endif }
protected override void OnDisable() { Undo.undoRedoPerformed -= ResetTargetOnUndo; m_PipelineSet.Shutdown(); base.OnDisable(); #if UNITY_2021_2_OR_NEWER CinemachineSceneToolUtility.UnregisterTool(typeof(FoVTool)); CinemachineSceneToolUtility.UnregisterTool(typeof(FarNearClipTool)); #endif }
protected virtual void OnDisable() { m_GameViewEventCatcher.OnDisable(); CinemachineDebug.OnGUIHandlers -= OnGUI; if (CinemachineSettings.CinemachineCoreSettings.ShowInGameGuides) { InspectorUtility.RepaintGameView(); } #if UNITY_2021_2_OR_NEWER CinemachineSceneToolUtility.UnregisterTool(typeof(TrackedObjectOffsetTool)); #endif }
protected virtual void OnDisable() { CinemachineSceneToolUtility.UnregisterTool(typeof(FollowOffsetTool)); }