If I have method with BlueprintImplementableEvent, how can I get is this function implemented on blueprint?
Thanks!
If I have method with BlueprintImplementableEvent, how can I get is this function implemented on blueprint?
Thanks!
One way would be to use Cast. If you successfully cast to a class you know implements the event, then that instance has the event.
Another way would be to use Interfaces.
Another way is this:
UFunction* function= SomeActor->FindFunction(FName(*FunctionName));
if (function != NULL)
{
FString name = function->GetName();
bool b = function->IsInBlueprint();
if (b)
{
UE_LOG(LogTemp, Log, TEXT("function named %s is implemented in BP"), *name);
}
}
Awesome!!!