暂无描述
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. using UnityEngine;
  2. namespace UnityEditor.Tilemaps
  3. {
  4. /// <summary>
  5. /// Tool for doing an erase with the Tile Palette
  6. /// </summary>
  7. public sealed class EraseTool : TilemapEditorTool
  8. {
  9. private static class Styles
  10. {
  11. public static string tooltipStringFormat = "|Erase with active brush ({0})";
  12. public static string shortcutId = GridPaintPaletteWindow.ShortcutIds.k_Erase;
  13. public static GUIContent toolContent = EditorGUIUtility.IconContent("Grid.EraserTool", GetTooltipText(tooltipStringFormat, shortcutId));
  14. }
  15. /// <summary>
  16. /// Tooltip String Format for the EraseTool
  17. /// </summary>
  18. protected override string tooltipStringFormat
  19. {
  20. get { return Styles.tooltipStringFormat; }
  21. }
  22. /// <summary>
  23. /// Shortcut Id for the EraseTool
  24. /// </summary>
  25. protected override string shortcutId
  26. {
  27. get { return Styles.shortcutId; }
  28. }
  29. /// <summary>
  30. /// Toolbar Icon for the EraseTool
  31. /// </summary>
  32. public override GUIContent toolbarIcon
  33. {
  34. get { return Styles.toolContent; }
  35. }
  36. }
  37. }