mirror of
https://github.com/Ed94/Cog.git
synced 2026-08-07 16:18:50 +00:00
Update README.md
This commit is contained in:
@@ -272,6 +272,7 @@ The Cog repository has the following structure:
|
||||
- `CogDebug` - Debug functionalities (Log, Debug Draw, Plot, Metric, ...)
|
||||
- `CogImGui` - Integration of Imgui for Unreal, inspired by [UnrealImGui](https://github.com/segross/UnrealImGui)
|
||||
- `CogCommon` - Interfaces implemented by your project actor classes which cannot be excluded from a shipping build
|
||||
- `Plugins/CogAll` - Only contains a utility function to easily add all the built-in windows from all the Cog plugins. Useful for projects that do not need to exclude some plugins.
|
||||
|
||||
Cog has multiple plugins to ease the integration for projects that do not use the `Ability System Component` or `Enhanced Input`. For the next steps, it is assumed all the plugins are used.
|
||||
|
||||
@@ -359,18 +360,17 @@ void ACogSampleGameState::BeginPlay()
|
||||
CogWindowManager = NewObject<UCogWindowManager>(this);
|
||||
CogWindowManagerRef = CogWindowManager;
|
||||
|
||||
// Add windows
|
||||
CogWindowManager->AddWindow<FCogEngineWindow_DebugSettings>("Engine.Debug Settings");
|
||||
CogWindowManager->AddWindow<FCogEngineWindow_ImGui>("Engine.ImGui");
|
||||
CogWindowManager->AddWindow<FCogAbilityWindow_Abilities>("Gameplay.Abilities");
|
||||
CogWindowManager->AddWindow<FCogAbilityWindow_Attributes>("Gameplay.Attributes");
|
||||
// Add all the built-in windows
|
||||
Cog::AddAllWindows(*CogWindowManager);
|
||||
|
||||
// Add a custom window
|
||||
CogWindowManager->AddWindow<FCogSampleWindow_Team>("Gameplay.Team");
|
||||
|
||||
[...]
|
||||
#endif //ENABLE_COG
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
- Tick the CogWindowManager:
|
||||
```cpp
|
||||
// ACogSampleGameState.cpp
|
||||
|
||||
Reference in New Issue
Block a user