using UnityEditor.EditorTools; using UnityEngine; namespace UnityEditor.Tilemaps { /// /// Tool for doing a picking action with the Tile Palette /// public sealed class PickingTool : TilemapEditorTool { private static class Styles { public static string tooltipStringFormat = "|Pick or marquee select new brush ({0})"; public static string shortcutId = "Grid Painting/Picker"; public static GUIContent toolContent = EditorGUIUtility.IconContent("Grid.PickingTool", GetTooltipText(tooltipStringFormat, shortcutId)); } /// /// Tooltip String Format for the PickingTool /// protected override string tooltipStringFormat { get { return Styles.tooltipStringFormat; } } /// /// Shortcut Id for the PickingTool /// protected override string shortcutId { get { return Styles.shortcutId; } } /// /// Toolbar Icon for the PickingTool /// public override GUIContent toolbarIcon { get { return Styles.toolContent; } } } }