• Unity_彩色增强层级插件


    主要是Enhanced Hierarchy和Rainbow Hierarchy插件

    能不能真的提高效率且不谈, 这种花里胡哨的风格我就很喜欢


    Enhanced Hierarchy插件

    配置页面机翻汉化:

    位于插件目录下Preferences.cs第99行, 插件版本2.4.5

    1. #region PrefItems
    2. [AutoPrefItem]
    3. [AutoPrefItemDefaultValue(true)]
    4. [AutoPrefItemLabel("启用", "启用或禁用整个插件, 如果出现错误将自动禁用")]
    5. public static PrefItem<bool> Enabled;
    6. [AutoPrefItem]
    7. [AutoPrefItemDefaultValue(0)]
    8. [AutoPrefItemLabel("右边距", "图标的边距,如果您有更多也使用层次结构的扩展,则很有用")]
    9. public static PrefItem<int> RightMargin;
    10. [AutoPrefItem]
    11. [AutoPrefItemDefaultValue(0)]
    12. [AutoPrefItemLabel("左边距", "图标的边距,如果您有更多也使用层次结构的扩展,则很有用")]
    13. public static PrefItem<int> LeftMargin;
    14. [AutoPrefItem]
    15. [AutoPrefItemDefaultValue(14)]
    16. [AutoPrefItemLabel("缩进", "缩进标签,对薄层级很有用")]
    17. public static PrefItem<int> Indent;
    18. [AutoPrefItem]
    19. [AutoPrefItemDefaultValue(0.8f)]
    20. [AutoPrefItemLabel("层级树不透明度", "树视图线的不透明度将子变换连接到它们的父级,如果您在子级中有多个子级,则很有用")]
    21. public static PrefItem<float> TreeOpacity;
    22. [AutoPrefItem]
    23. [AutoPrefItemDefaultValue(0.5f)]
    24. [AutoPrefItemLabel("枝干比例", "没有子项的层次结构项的枝干长度")]
    25. public static PrefItem<float> TreeStemProportion;
    26. [AutoPrefItem]
    27. [AutoPrefItemDefaultValue(true)]
    28. [AutoPrefItemLabel("单击树线选择父对象", "可能会影响性能")]
    29. public static PrefItem<bool> SelectOnTree;
    30. [AutoPrefItem]
    31. [AutoPrefItemDefaultValue(true)]
    32. [AutoPrefItemLabel("工具提示", "显示工具提示,比如这个")]
    33. public static PrefItem<bool> Tooltips;
    34. [AutoPrefItem]
    35. [AutoPrefItemDefaultValue(true)]
    36. [AutoPrefItemLabel("仅相关工具提示", "隐藏具有静态文本的工具提示")]
    37. public static PrefItem<bool> RelevantTooltipsOnly;
    38. [AutoPrefItem]
    39. [AutoPrefItemDefaultValue(true)]
    40. [AutoPrefItemLabel("增强选择", "允许通过用鼠标右键拖动来批量选择游戏对象")]
    41. public static PrefItem<bool> EnhancedSelection;
    42. [AutoPrefItem]
    43. [AutoPrefItemLabel("突出颜色", "为鼠标光标悬停的对象设置高亮颜色")]
    44. public static PrefItem HoverTintColor;
    45. [AutoPrefItem]
    46. [AutoPrefItemDefaultValue(false)]
    47. [AutoPrefItemLabel("隐藏原生图标", "隐藏名称左侧的原生图标")]
    48. public static PrefItem<bool> DisableNativeIcon;
    49. [AutoPrefItem]
    50. [AutoPrefItemDefaultValue(true)]
    51. [AutoPrefItemLabel("名称拖尾", "当对象名称大于视图区域时在最后附加...省略号")]
    52. public static PrefItem<bool> Trailing;
    53. [AutoPrefItem]
    54. [AutoPrefItemDefaultValue(true)]
    55. [AutoPrefItemLabel("选择锁定的对象", "允许选择锁定的对象")]
    56. public static PrefItem<bool> AllowSelectingLockedObjects;
    57. [AutoPrefItem]
    58. [AutoPrefItemDefaultValue(false)]
    59. [AutoPrefItemLabel("拾取锁定的对象", "允许拾取锁定在场景视图中的对象\n更改此选项之前锁定的对象不会受到影响")]
    60. public static PrefItem<bool> AllowPickingLockedObjects;
    61. [AutoPrefItem]
    62. [AutoPrefItemDefaultValue(true)]
    63. [AutoPrefItemLabel("更改所有选定对象", "这将使启用、锁定、图层、标签和静态按钮影响层次结构中的所有选定对象")]
    64. public static PrefItem<bool> ChangeAllSelected;
    65. [AutoPrefItem]
    66. [AutoPrefItemDefaultValue(true)]
    67. [AutoPrefItemLabel("最左边的左侧按钮", "将左按钮放在层次结构的最左侧,如果禁用它将在游戏对象名称旁边")]
    68. public static PrefItem<bool> LeftmostButton;
    69. [AutoPrefItem]
    70. [AutoPrefItemDefaultValue(true)]
    71. [AutoPrefItemLabel("打开日志脚本", "单击警告、日志或错误将打开脚本以在您的 IDE 或文本编辑器中进行编辑\n可能会影响性能")]
    72. public static PrefItem<bool> OpenScriptsOfLogs;
    73. [AutoPrefItem]
    74. [AutoPrefItemDefaultValue(false)]
    75. [AutoPrefItemLabel("替换默认子切换", "将用于扩展子项的默认切换替换为显示子项计数的新切换项")]
    76. public static PrefItem<bool> NumericChildExpand;
    77. [AutoPrefItem]
    78. [AutoPrefItemDefaultValue(true)]
    79. [AutoPrefItemLabel("较小的字体", "在小标签上使用较小的字体来缩小层次结构")]
    80. public static PrefItem<bool> SmallerMiniLabel;
    81. [AutoPrefItem]
    82. [AutoPrefItemDefaultValue(15)]
    83. [AutoPrefItemLabel("图标大小", "图标的大小 (以像素为单位)")]
    84. public static PrefItem<int> IconsSize;
    85. [AutoPrefItem]
    86. [AutoPrefItemDefaultValue(true)]
    87. [AutoPrefItemLabel("尽可能集中", "当只有标签或只有层时集中迷你标签")]
    88. public static PrefItem<bool> CentralizeMiniLabelWhenPossible;
    89. [AutoPrefItem]
    90. [AutoPrefItemDefaultValue(true)]
    91. [AutoPrefItemLabel("隐藏“未标记”标签", "隐藏迷你标签上的默认标签")]
    92. public static PrefItem<bool> HideDefaultTag;
    93. [AutoPrefItem]
    94. [AutoPrefItemDefaultValue(true)]
    95. [AutoPrefItemLabel("隐藏“默认”图层", "隐藏迷你标签上的默认图层")]
    96. public static PrefItem<bool> HideDefaultLayer;
    97. [AutoPrefItem]
    98. [AutoPrefItemDefaultValue(false)]
    99. [AutoPrefItemLabel("隐藏默认图标", "隐藏默认游戏对象图标")]
    100. public static PrefItem<bool> HideDefaultIcon;
    101. [AutoPrefItem]
    102. [AutoPrefItemDefaultValue(1)]
    103. [AutoPrefItemLabel("分隔线粗细", "分隔线粗细")]
    104. public static PrefItem<int> LineSize;
    105. [AutoPrefItem]
    106. [AutoPrefItemLabel("奇数行背景颜色", "奇数行的色调")]
    107. public static PrefItem OddRowColor;
    108. [AutoPrefItem]
    109. [AutoPrefItemLabel("偶数行背景颜色", "偶数行的色调")]
    110. public static PrefItem EvenRowColor;
    111. [AutoPrefItem]
    112. [AutoPrefItemLabel("线条颜色", "分隔线的色调")]
    113. public static PrefItem LineColor;
    114. [AutoPrefItem]
    115. [AutoPrefItemLabel("左侧按钮", "将出现在层次结构左侧的按钮\n禁用“层次结构树”后看起来会更好")]
    116. public static PrefItem LeftSideButtonPref;
    117. [AutoPrefItem]
    118. [AutoPrefItemLabel("迷你标签", "游戏对象名称旁边的小标签")]
    119. public static PrefItem<int[]> MiniLabels;
    120. [AutoPrefItem]
    121. [AutoPrefItemDefaultValue(ChildrenChangeMode.ObjectAndChildren)]
    122. [AutoPrefItemLabel("锁定", "单击锁定开关时将锁定哪些对象")]
    123. public static PrefItem LockAskMode;
    124. [AutoPrefItem]
    125. [AutoPrefItemDefaultValue(ChildrenChangeMode.Ask)]
    126. [AutoPrefItemLabel("图层", "当您单击图层按钮或迷你标签时,哪些对象的图层将发生变化")]
    127. public static PrefItem LayerAskMode;
    128. [AutoPrefItem]
    129. [AutoPrefItemDefaultValue(ChildrenChangeMode.ObjectOnly)]
    130. [AutoPrefItemLabel("标签", "当您单击标签按钮或迷你标签时,哪些对象的标签会更改")]
    131. public static PrefItem TagAskMode;
    132. [AutoPrefItem]
    133. [AutoPrefItemDefaultValue(ChildrenChangeMode.Ask)]
    134. [AutoPrefItemLabel("静态", "单击静态切换时将更改哪些对象的静态标志")]
    135. public static PrefItem StaticAskMode;
    136. [AutoPrefItem]
    137. [AutoPrefItemDefaultValue(ChildrenChangeMode.ObjectOnly)]
    138. [AutoPrefItemLabel("图标", "单击图标按钮时,哪些对象的图标将发生变化")]
    139. public static PrefItem IconAskMode;
    140. [AutoPrefItem]
    141. [AutoPrefItemLabel("对象名称旁边的图标", "出现在游戏对象名称旁边的图标")]
    142. public static PrefItem LeftIcons;
    143. [AutoPrefItem]
    144. [AutoPrefItemLabel("最右边的图标", "显示在层次结构最右侧的图标")]
    145. public static PrefItem RightIcons;
    146. [AutoPrefItem]
    147. [AutoPrefItemLabel("按图层分配颜色", "为每个不同的图层设置行颜色")]
    148. public static PrefItem> PerLayerRowColors;
    149. #endregion

     

    一些提示机翻

    • Alt+点击子对象的折叠展开切换也会同时展开所有的孙对象的折叠
    • “使用的内存”可能会创建垃圾,从而导致卡顿,如果项目有较大的性能要求,则将其禁用
    • 请记住,在删除或禁用此扩展时,始终要先解锁您的游戏对象,因为删除或禁用插件后您将无法解锁对象,并且可能丢失场景数据

    附带的说明文档的机翻:

    如何打开配置界面

    配置界面位于Unity首选项中,通过菜单栏的"编辑">"首选项"进入(macOS是Unity/Preferences), 您将看到“层次结构”或“增强层次结构”选项卡

    插件自己禁用了,该怎么办

    您可能按下了 Ctrl + H,这是启用和禁用的快捷方式, 只需再次按下快捷键, 它应该可以工作

    Debug.Log、Debug.LogWarning和Debug.LogError不显示

    插件扩展带有一些脚本, 调用调试打印信息需要将对象作为方法的参数传递,如下所示:

    Debug.Log("Something", this);

    或者干脆使用 print 方法

    使用扩展后游戏无法编译

    扩展必须放在 Editor 文件夹中, 因为它使用编辑器

    如何使用增强选择

    只需使用鼠标右键拖动层次结构项目 (仅限 Windows)


    Rainbow Hierarchy插件

    配置面板

    • 对象-规则将仅应用于指定的游戏对象
    •     (或名称-该规则将应用于所有具有该名称的游戏对象)
    • 优先级-如果有多个规则应用于同一层级项目, 则将应用优先级最高的规则
    • 图标-应用于相应对象的图标, 可以从预设中选择或导入自定义图标
    • 背景-应用于对应对象的背景, 可以从预设中选择或导入自定义纹理
    • 递归复选框-相同的图标或背景将自动应用于所有子对象

    其他一些插件设置在项目设置里, 感觉没啥用懒得去找翻译了

  • 相关阅读:
    SpringBoot中几种好用的代码生成器(基于Mybatis-plus生成entity、mapper、xml等)
    V-Value in fiber(光纤中的V值)
    golang入门笔记——consul
    ci-cd的流程
    遗留代码处理技巧与案例演示
    K8s操作命令
    【分析笔记】NXP PCF85263 驱动调试笔记
    从SQL SERVER、MYSQL到ORACLE
    java程序员必会-远程debug
    C++ using的三种用法详解
  • 原文地址:https://blog.csdn.net/qq_36917144/article/details/127850099