feat: add mesh component editors and scene hierarchy serialization

This commit is contained in:
2026-03-31 21:25:59 +08:00
parent b92f9bfa70
commit be15bc2fc4
7 changed files with 341 additions and 7 deletions

View File

@@ -2,6 +2,8 @@
#include "ComponentEditors/CameraComponentEditor.h"
#include "ComponentEditors/LightComponentEditor.h"
#include "ComponentEditors/MeshFilterComponentEditor.h"
#include "ComponentEditors/MeshRendererComponentEditor.h"
#include "ComponentEditors/TransformComponentEditor.h"
namespace XCEngine {
@@ -16,6 +18,8 @@ ComponentEditorRegistry::ComponentEditorRegistry() {
RegisterEditor(std::make_unique<TransformComponentEditor>());
RegisterEditor(std::make_unique<CameraComponentEditor>());
RegisterEditor(std::make_unique<LightComponentEditor>());
RegisterEditor(std::make_unique<MeshFilterComponentEditor>());
RegisterEditor(std::make_unique<MeshRendererComponentEditor>());
}
void ComponentEditorRegistry::RegisterEditor(std::unique_ptr<IComponentEditor> editor) {