Creating new console commands
During development, console commands can be very helpful by allowing a developer or tester to easily bypass content, or disable the mechanics not relevant to the current test being run. The most common way to implement this is via console commands, which can invoke functions during runtime. The console can be accessed using the tilde key (~
) or the equivalent in the upper-left area of the alphanumeric zone of your keyboard.
Getting ready
If you haven't already followed the Creating a new editor module recipe, do so, as this recipe will need a place to initialize and register the console command.
How to do it...
- Open your ...
Get Unreal Engine 4 Scripting with C++ Cookbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.