@@ -917,6 +917,16 @@ void UI::SetDebugHudExtents(bool useRootExtent, const IntVector2& position, cons
}
+void UI::CycleDebugHudMode()
+{
+ SystemUI::DebugHud* hud = GetSubsystem<SystemUI::DebugHud>();
+
+ if (!hud)
+ return;
+ hud->CycleMode();
+}
void UI::SetDebugHudProfileMode(DebugHudProfileMode mode)
{
SystemUI::DebugHud* hud = GetSubsystem<SystemUI::DebugHud>();
@@ -100,6 +100,8 @@ public:
void ShowDebugHud(bool value);
void ToggleDebugHud();
+ void CycleDebugHudMode();
void SetDebugHudProfileMode(DebugHudProfileMode mode);
void SetDebugHudExtents(bool useRootExtents = true, const IntVector2& position = IntVector2::ZERO, const IntVector2& size = IntVector2::ZERO);