Awesome
BUI Cheat Manager
Usage
- Create a C++ subclass of UBUICheatManagerBase:
#pragma once
#include "BUICheatManagerBase.h"
#include "MyCheatManager.generated.h"
UCLASS( meta = ( CheatPrefix = "mygame." ) )
class UMyCheatManager : public UBUICheatManagerBase
{
GENERATED_BODY()
public:
UFUNCTION( exec, meta = ( Cheat = "car.spawn" ) )
void SpawnCar( int32 num );
};
- Add cheat functions as you would normally, but add the tag "Cheat" with a shortcut name.
- Create a Blueprint subclass of your Cheat Manager. This step is required. The shortcut names only work by using the asset tags registry.
- Set your PlayerController to use the Blueprint subclass of your Cheat Manager.
- Play the game and press tilde ` to bring up the console. Your cheats will be listed in Cyan with the prefix set in CheatPrefix.
Thanks
Huge thanks to Geordie Hall at Bit Dragon for the bulk of this technique.