using UnityEngine; namespace UnityEditor.Tilemaps { /// /// Tool for doing a selection with the Tile Palette /// public sealed class SelectTool : TilemapEditorTool { private static class Styles { public static string tooltipStringFormat = "|Select an area of the grid ({0})"; public static string shortcutId = "Grid Painting/Select"; public static GUIContent toolContent = EditorGUIUtility.IconContent("Grid.Default", GetTooltipText(tooltipStringFormat, shortcutId)); } /// /// Tooltip String Format for the SelectTool /// protected override string tooltipStringFormat { get { return Styles.tooltipStringFormat; } } /// /// Shortcut Id for the SelectTool /// protected override string shortcutId { get { return Styles.shortcutId; } } /// /// Toolbar Icon for the SelectTool /// public override GUIContent toolbarIcon { get { return Styles.toolContent; } } } }