Problems with CheatManager and the DebugCamera

Title: "Problems with CheatManager and the DebugCamera" 

Author: Sean Jamelarin 

Date: 06/15/2023

The Problem: During this week of development I ran into a problem concerning enabling the debug camera through the in-game console; Specifically, when travelling between levels, one loses the ability to enable the debug camera. This may not be of importance to an end-user of the product, but being unable to use a debug camera to its full capacity during development may severely impede our bug resolving ability.

The Solution: I used the standalone game option in editor, as I could reproduce the same problem and have complete access to the debug symbols the editor uses. I found the specific code pertaining to checking if the CheatManager is valid and is allowed to be used; meaning either the CheatManager reference is null, or I lose the permission to use cheats when moving between levels. After more snooping around, I found the "EnableCheats" function in PlayerController. Testing the console command after repeating the steps to reproduce the functionality breakdown, I have successfully managed to get Debug Camera to work again. 

Comments

Popular Posts