Hi, since BlueprintImplementableEvent does not let me add a static function I was trying to do two things:
the first one was to create an class object like this:
EdsError EDSCALLBACK handleObjectEvent(EdsObjectEvent event,
EdsBaseRef object,
EdsVoid* context) {
ACameraNikon Camera;
if (event == kEdsObjectEvent_DirItemCreated) {
GEngine->AddOnScreenDebugMessage(-1, 5.0f, FColor::Orange, ("DirItemCreated"));
Camera.ShutterDown();
}
// Object must be released
if (object)
{
EdsRelease(object);
}
return EDS_ERR_OK;
}
But this gives me the error: “UE4 created a Breakpoint”, and then it closes. So I was trying to get an instance of the class following the code in this discussion:
But still don’t know why it doesn’t work. I also deleted “static” in the line that you showed me, but still don’t have any response from the event.
I basically want to create an event that can be seen in Blueprints and that can be triggered from a static function. Thanks for your time