Files
XCEngine/docs/api/XCEngine/Editor/ComponentEditors/ComponentEditors.md

1.2 KiB

ComponentEditors

命名空间: XCEngine::Editor

类型: submodule

描述: 组件属性编辑器层,负责把运行时组件映射到 Inspector 中的具体编辑 UI。

概述

当前目录包含:

这说明 Inspector 当前走的是“按组件类型注册专用 editor”的路线。这和商业编辑器里常见的 custom inspector / property drawer 思路是一致的。

当前这组 editor 也已经体现出比较明确的分层:

  • IComponentEditor 定义统一契约
  • ComponentEditorRegistry 负责注册和查找
  • 具体 editor 只处理本组件的 Inspector 体验

这比把所有组件字段硬塞进一个大而全的 Inspector 渲染器更容易扩展。

相关文档