#if !CINEMACHINE_NO_CM2_SUPPORT using UnityEngine; using System; using UnityEditor.EditorTools; namespace Unity.Cinemachine.Editor { /// /// This was a base class for Cinemachine tools, but is not longer used. /// [Obsolete("This class is no longer used.")] public abstract class CinemachineTool : EditorTool, IDrawSelectedHandles { /// Implement this to set your Tool's icon and tooltip. /// A GUIContent with an icon set. protected abstract GUIContent GetIcon(); /// This lets the editor find the icon of the tool. public override GUIContent toolbarIcon => null; /// This is called when the Tool is selected in the editor. public override void OnActivated() => base.OnActivated(); /// This is called when the Tool is deselected in the editor. public override void OnWillBeDeactivated() => base.OnWillBeDeactivated(); /// Implement IDrawSelectedHandles to draw gizmos for this tool even if it is not the active tool. public void OnDrawHandles() {} /// Get the path to the tool's icon asset. /// The path to the icon asset. private protected string GetIconPath() => string.Empty; } } #endif