Navigation
Unreal Engine C++ API Reference > Runtime > Engine > GameFramework > APlayerController
Syntax
TObjectPtr< UCheatManager > CheatManager
Remarks
Object that manages "cheat" commands.
By default:
- In Shipping configurations, the manager is always disabled because UE_WITH_CHEAT_MANAGER is 0
- When playing in the editor, cheats are always enabled
- In other cases, cheats are enabled by default in single player games but can be forced on with the EnableCheats console command
This behavior can be changed either by overriding APlayerController::EnableCheats or AGameModeBase::AllowCheats.