New Wiki, How to Get a UE4 FString of Calling Class, Function, and Line Number -

Two More Pre Processor Commands!

I’ve added two more functions to this header file for you!

VSCREEMSG2 takes in two strings, one of which might be a vector for example, using SomeVector.ToString()

VSCREEMSGF lets you print a labeled flow, ex: VSCREEMSGF(“Player Velocity Z”,GetCharacterMovement()->Velocity.Z);



#define VSCREENMSG2(Param1,Param2) (GEngine->AddOnScreenDebugMessage(-1, 5.f, FColor::Red, *(JOYSTR_CUR_CLASS_LINE + ": " + Param1 + " " + Param2)) )

#define VSCREENMSGF(Param1,Param2) (GEngine->AddOnScreenDebugMessage(-1, 5.f, FColor::Red, *(JOYSTR_CUR_CLASS_LINE + ": " + Param1 + " " + FString::SanitizeFloat(Param2))) )


_


Enjoy!