So, I’m trying to get the code below to work. But I’m failing.
I’ve put the code in the header file, but I do not see it as an Event in the blueprint event graph. I’m able to see the BlueprintCallable, but not an event as I need it to be.
Do anyone have any suggestions?
I have googled and found others asking about this as well, but that was 2014 and 2015 and so on, but I’m unable to get it working. I’m new to C++. So I have probably overlooked something.
I’ve had this same issue in the past. What you can try is close the editor, compile, then open it. Make sure the list is not context sensitive. Also, the event can only show in the actor blueprint class.
I have found the right place to add the code and it all works just fine now.
The event shows up on a different place than expected, but it triggers when called and everything is all good.
First of all, I had put the code in a place it would not work. Then I got a compilation error saying I needed the right permission to run build.bat. I took permission of the folder, and now it all works.
Another reason this can happen is if you add const at the end of your C++ function. Apparently it seems you can’t have const functions be events. Also after removing const it wasn’t enough to live reload, I had to close editor and recompile.