mirror of
https://github.com/Ed94/Cog.git
synced 2026-07-29 10:50:04 +00:00
Update README.md
This commit is contained in:
@@ -447,6 +447,26 @@ public class CogSample : ModuleRules
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
- Override the Unreal GameInstance:
|
||||||
|
```cpp
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "CogSampleGameInstance.generated.h"
|
||||||
|
|
||||||
|
class UCogSubsystem;
|
||||||
|
|
||||||
|
UCLASS()
|
||||||
|
class UCogSampleGameInstance : public UGameInstance
|
||||||
|
{
|
||||||
|
GENERATED_BODY()
|
||||||
|
|
||||||
|
void Init() override;
|
||||||
|
};
|
||||||
|
```
|
||||||
|
|
||||||
|
- Set your own game instance in the Unreal project settings:
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
- In your GameInstance Init:
|
- In your GameInstance Init:
|
||||||
- Add the windows you want to the CogSubsystem. In the sample we add all the built-in windows by calling Cog::AddAllWindows and we also add a custom window from the sample itself, showcasing that you can add your own windows.
|
- Add the windows you want to the CogSubsystem. In the sample we add all the built-in windows by calling Cog::AddAllWindows and we also add a custom window from the sample itself, showcasing that you can add your own windows.
|
||||||
|
|||||||
Reference in New Issue
Block a user