The cheat manager in Unreal Engine 4 is a class that handles commands useful for making testing much easier. In fact it’s a container for most of the exec functions. Those functions can be implemented in many places – GameInstance classes or PlayerController classes but it’s good to keep them in one place in order to have the project more organized.
There are plenty of commands in the base Cheat Manager already – you can check all of them in the following file.

But if you want to extend the Cheat Manager in your game there are few steps that must be followed.

To start implementing your Cheat Manager – create a class that inherits from the base one:

MyCheatManager.h

Notice the exec function. This keyword tells the engine that this is an executable command.

The Cheat Manager is an integral part of the Player Controller, so you must tell your Player Controller which Cheat Manager it should use:

MyPlayerController.cpp

Remember to set your Player Controller to be used in a Game Mode:

CheatTestGameModeBase.cpp

In the end – implement the Cheat Manager’s function:

MyCheatManager.cpp

And it is done! When we type testmycheatmanager (commands are case insensitive) into the console (press ` on PC or tap the screen with four fingers on mobile device) the nice message should appear on the screen:

mcmmsg

The Cheat Manager is one of the simpliest tools that simplifies the testing routine. The other ones are the Console Manager or Command-Line Arguments but they are more advanced ones. For simple test – Cheat Manager is the best!