Custom console commands with debug symbols!

Hi Folks,

I am trying to create some console commands to help me debug a few of my gameplay features. Now the issue is, some of these functions don’t have to make it to the final build. So I am trying to wrap them around #if UE_BUILD_DEBUG. When I do this though, the function doesn’t show up in the
PIE.

#if UE_BUILD_DEBUG
		UFUNCTION(exec, meta = (FriendlyName = "Particle Rush Console ~ ToggleDrawWallCollisionResults"))
		void DrawCollisionResults();
#endif

If I remove the #if UE_BUILD_DEBUG, it seems to work fine. Any thoughts!? Workarounds!? Or is just a waste of time to even try this!?

Thanks

Hello,

Please note that in this situation you can also use the following:

#if !UE_BUILD_SHIPPING 
#if UE_BUILD_TEST
#if UE_BUILD_DEVELOPMENT
#if UE_BUILD_DEBUG

Hope this helped!

Cheers!