Skip to content
罐子 edited this page Apr 27, 2022 · 1 revision

UnityCompare

用于对比Unity3D预制体的工具 原理是基于两个Prefab的子树进行依次对比(基于名字),然后将差异以两列树结构显示出来。然后点击进入具体的GameObject可以看到两个子GameObject的Component差异。再选择具体的GameObject或者Component,可以看到基于SerializedObjectSerializedProperty的对比。

优点

  • 可视化的对比两个Prefab的差异,包括结构差异、显示差异、Component个数和属性值差异
  • 与其他对比方案差异主要在于对比窗口是与原Inpector显示是一致的,这样对比和合并时,操作方式与GameObject编辑是一致的。

功能点

  • 同一工程对比两个Prefab
    • Transform列表差异
    • GameObject差异
    • Component列表差异
    • Component内容差异
  • 可视化差异列表
    • GameObject列表
    • Component列表
    • GameObject Inspector对比
    • Component Inspector对比
  • 显示/隐藏正确项
  • 显示/隐藏缺失项
  • 跳转定位上一个/下一个差异项
  • 自定义Component Property忽略字段
  • 拷贝/移除缺失的GameObject对象
  • 拷贝/移除缺失的Component对象
  • 拷贝/粘贴Component属性值(全量)
  • 显示GameObject和嵌套Prefab
Clone this wiki locally