Major Change - Rework how Cog gets integrated

Cog integration has been reworked to make it easier,  to keep Cog available between level loadings, and to properly tick ImGui while the game is paused.
Cog 's WindowManager is now a GameInstanceSubsystem.
The WindowManager ticks ImGui and the windows during the OnWorldPostActorTick delegate.
(If this is not working for your project, don't hesitate to open an issue.)

Check the readme to see how to integrate Cog.

The Plot debug functions (displayed by the Engine/Plot window) have been reworked as they were not properly working in Multi PIE in Single Process.

API changes:
- use FCogDebug::Plot instead of FCogDebugPlot::PlotValue
- use FCogDebug::InstantEvent  instead of FCogDebugPlot::PlotEventInstant
- use FCogDebug::StartEvent instead of FCogDebugPlot::PlotEventStart
- use FCogDebug::StopEvent instead of FCogDebugPlot::PlotEventStop
This commit is contained in:
Arnaud Jamin
2025-02-11 13:29:12 -05:00
parent 357bd9974e
commit 6d9494b685
40 changed files with 1618 additions and 1480 deletions
+1
View File
@@ -2,6 +2,7 @@
GameDefaultMap=/Game/Maps/L_Level1.L_Level1
EditorStartupMap=/Game/Maps/L_Level1.L_Level1
GlobalDefaultGameMode="/Script/CogSample.CogSampleGameMode"
GameInstanceClass=/Script/CogSample.CogSampleGameInstance
[/Script/Engine.RendererSettings]
r.ReflectionMethod=1