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

Print Screen Messages from C++, Automatically Including Class / Line Number!

Pic Explanation

In this pic, AEVCoreDefense is my C++ Class, and the line number of the screen message is currently line 93 (automatically updates as your class grows in size!)

Using the .h file I share with you in the original post of this thread, you can easily output messages to yourself that tell you

  1. the class where you printed the message

  2. the line number on which you printed the message

  3. the name of the function in which you printed the message!

  4. the function signature which contains the printed message

And I exposed this to the screen debug messages as well as to the UE_LOG system!

Enjoy!