From a75bcc260f49c511181cc1f6d26c9a5792d6ce1c Mon Sep 17 00:00:00 2001 From: antopilo Date: Wed, 11 Sep 2024 17:42:04 -0400 Subject: [PATCH] Added UI for IsWorldspace --- Editor/src/ComponentsPanel/UIPanel.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Editor/src/ComponentsPanel/UIPanel.h b/Editor/src/ComponentsPanel/UIPanel.h index 05ce4496..70251dac 100644 --- a/Editor/src/ComponentsPanel/UIPanel.h +++ b/Editor/src/ComponentsPanel/UIPanel.h @@ -45,6 +45,16 @@ public: ComponentTableReset(component.UIFilePath, ""); } + ImGui::TableNextColumn(); + { + ImGui::Text("Worldspace"); + ImGui::TableNextColumn(); + + ImGui::Checkbox("##WorldSpace", &component.IsWorldSpace); + ImGui::TableNextColumn(); + + ComponentTableReset(component.IsWorldSpace, false); + } } EndComponentTable(); }