Contains default “cheat commands” that can be triggered from Console.
Enabling cheat manager in packaged builds
- Add following into your build.cs:
PublicDefinitions.Add("UE_WITH_CHEAT_MANAGER=1");
- Enable console in packaged builds
- Add code to create the cheat manager object
APlayerController* PC = /* get the player controller from somewhere */;
if(!PC->CheatManager)
{
PC->CheatManager = NewObject<UCheatManager>(PC, PC->CheatClass);
}
Since the cheat manager attaches to the player controller, the most reliable place to call his is from your Player Controller’s BeginPlay.