Adding editor features¶
Add a panel¶
- Create a class implementing
IEditorPanelinEditor/include/Panels/andEditor/src/Panels/. - Register it in
EditorLayer's panel list and dockspace layout. - Add it to the default dock layout if needed.
Add an inspector section¶
Implement IPluginEditor and register it in InspectorPanel::InspectorPanel().
Add a menu item¶
Add to EditorLayer::DrawSceneMenuItems() or the relevant menu builder. Keep shortcuts
consistent with the existing Ctrl+S / Ctrl+C / Ctrl+V scheme.
Guidelines¶
- The editor only writes component data; systems do the work.
- Clamp values early in inspector widgets.
- Keep serialization in sync.
- Use asset pickers for paths.