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