diff --git a/editor/src/GUI.cpp b/editor/src/GUI.cpp index 4094ea8..20e5699 100644 --- a/editor/src/GUI.cpp +++ b/editor/src/GUI.cpp @@ -3,6 +3,8 @@ #include #include "GUI.h" +#include + #include "FrameBuffer.h" #include "Window.h" @@ -146,7 +148,10 @@ void GUI::ShowEntities() { ImGui::Begin(ICON_FA_CUBE" Entities"); - ImGui::CollapsingHeader("Cube"); + for(const auto& cube : Renderer::GetData().m_Scene->GetCubes()) + { + ImGui::CollapsingHeader(cube->name.c_str()); + } ImGui::End(); }