I’m trying to add some logging messages in the source code to understand the whole process of seamless travel. I got it to work in a new actor class, but when I moved the exact same line to a source file, it does not work. Anyone have any idea why it’s not working?
I am going to presume that you are talking about explicitly the Engine’s Source Code (so editing something like Actor.cpp, or Actor.h)
if you are compiling from source then you will need to re-build the Engine itself, and then changes to the Engine’s Source Code will be applied in the editor
if you installed the engine from the Epic Games Launcher then the Source code files are provided for reference purposes only, and not intended to be modified. the actual Engine is pre-compiled into binary form, and those are referenced by the build pipeline, runtime, and the Reflection system.
-(if you fully integrated your IDE, it should even give a warning), so in this case the answer is “no”
if you have a specific file in mind, then try to comment each line with your best guess (Epic does try to avoid things like bit or pointer magic so most things “should be” explicit) they do utilize Templating a lot, and they expect heavy polymorphism often reducing to AActor or UObject for modularity/interoperability.
if you are still stuck with what a given class or function is doing then try posting the code with your best guess of comments.