This will cause compilation errors. Use #if UE_BUILD_DEBUG instead. The reason is that #ifdef returns true for #define UE_BUILD_DEBUG 0, since it is defined, just to the value zero.
In general, at Epic we use #if !UE_BUILD_SHIPPING (not shipping).
This will cause compilation errors. Use #if UE_BUILD_DEBUG instead. The reason is that #ifdef returns true for #define UE_BUILD_DEBUG 0, since it is defined, just to the value zero.
In general, at Epic we use #if !UE_BUILD_SHIPPING (not shipping).