Debug Draw system
Unreal has had three issue that has annoyed me for a long time; Vislog and the DrawDebug functions aren't cross-integrating, they behave slightly differently, and there's no way to update a previously create debug draw. For example, drawing a capsule around the player, then moving that capsule with the player.
If you want to debug something both live and in the vislog recorder, you have to call 2 different functions.
DrawDebugCapsulewill center the capsule at the origin point. ButVislog Capsule Shapewill create a capsule with the bottom of the capsule touching the origin point.Functions like
PrintStringhave a "key", so you can monitor a specific message in the corner of the screen and modify that one. The draw debug functions do not have this.Bonus issue: With the introduction of Mass, it's far easier to do multithreading code that often has to debug draw something. But the debug draw functions can sometimes cause odd crashes when used outside the game thread
OmniToolbox provides numerous functions called Draw and Log... and then a shape. These functions look to solve all problems in one go.
To disable runtime visualization, use the OmniToolbox.Debug.DrawDebugShapes console command. It will continue to record vislog shapes.
Last updated