Refine inspector layout and fix header labels

This commit is contained in:
2026-03-26 15:26:46 +08:00
parent 733b573963
commit 491fef940d
2 changed files with 29 additions and 23 deletions

View File

@@ -44,7 +44,7 @@ void InspectorPanel::RenderEntity(Entity* entity) {
void InspectorPanel::RenderComponent(Component* component) {
if (!component) return;
const char* name = component->GetName().c_str();
const std::string name = component->GetName();
std::string headerId = name + std::string("##") + std::to_string(reinterpret_cast<uintptr_t>(component));
@@ -91,4 +91,4 @@ void InspectorPanel::RenderComponent(Component* component) {
}
}
}
}