This commit is contained in:
Arnaud Jamin
2025-02-12 15:18:33 -05:00
parent 0b13879282
commit 362d248866
3 changed files with 11 additions and 18 deletions
+9 -4
View File
@@ -6,21 +6,26 @@
#include "CogAll.h"
#include "CogSampleWindow_Team.h"
#include "CogSubsystem.h"
#endif
#endif
//--------------------------------------------------------------------------------------------------------------------------
void UCogSampleGameInstance::Init()
{
Super::Init();
#if ENABLE_COG
// Get the cog subsystem
if (UCogSubsystem* CogSubSystem = GetSubsystem<UCogSubsystem>())
{
// Add all the built-in windows. You copy paste this function code to organize the menu differently.
Cog::AddAllWindows(*CogSubSystem);
// Add a custom window
CogSubSystem->AddWindow<FCogSampleWindow_Team>("Gameplay.Team");
// Activate Cog
CogSubSystem->Activate();
}
#endif
}
}