Hi!
- I create a new Actor based C++ class
- On the BeginPlay() I try to call a BP function:
//Source
#include "Misc/OutputDeviceNull.h"
void BeginPlay(){
FOutputDeviceNull a;
this->CallFunctionByNameWithArguments(TEXT("playAnim"), a, NULL, true);
}
- Save my class in VS, back to UEditor and compile successfully.
- Drag and drop my new class into the scene
- Press play, but BP class is not beging called…
This is the procedure i do each time i create a c++ class, what do i’m doing wrong?
The BP called is Level Blueprint, it has a “Add custom method” Node connected to a “Print String” Node.
Thanks…