How can I create custom console commands?
How can I create my own custom console commands? It would be great to do this in blueprints.
In the UE source code, I see default console commands being registered in the ConsoleManager. Do I need to somehow do this same thing in C++? If so, how can I get an instance of the ConsoleManager and register it, and ideally how could I hook that up to a Blueprint?
asked Aug 26 '14 at 03:29 AM in Blueprint Scripting
in C++, use UFUNCTION(Exec)
answered Nov 17 '14 at 12:34 PM
I think Console commands are simply decorated with UFUNCTION(), which will expose them to the console. I think they also need to be declared in some specific classes like your PlayerController, Character or GameMode, as not all classes' UFUNCTIONS will be exposed to the console.
answered Aug 26 '14 at 08:31 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here