Console commands
One of the main debugging toolsets for a UE4 developer is the in-play console. We can do things like invoke game travel to different maps, flag various profiling and statistical captures and change render settings at run-time. In this chapter we will look at how we can connect to listen servers via the console, as well as some of the great rendering and profiling settings we can invoke. It is important to note that all of these commands are available in editor and can be very useful from within the editor as well.
Connecting to the local host
Right now your two game clients will both state "Press R to start game" as they are currently not part of an online session, therefore their net role will default to ROLE_Authority
. With the NS.exe
instance selected, press the tilde
key; this will open the console as follows:
This console, much like every text-based search in UE4, does include an auto complete feature. It will suggest various actions that include some/all of...