Hi, I have a basic third person code project in UE4. Now may I call a blueprint file to be executed in my (ProjectName)Character.cpp; or .h?
Thanks, any help would be appreciated. I do not have a particular example but I’d just like to be able to call the commands from a blueprint to be executed.
First of all blueprints does not exist in C++, they are not part of machine code that C++ is compiled to, so you can’t direclly call anything to blueprint, you might something in APIs that allows to freely call things in blueprint
But easiest and most native way to do call in blueprint from C++ is event. Make base class in C++ which declarers events, in C++ they are normal functions with ImplementableEvent specifier in UFUNCTION, now make blueprint based of that base class and call event functions from C++ and they will trigger events in blueprint. Event also let you use arguments too