Hello. I am try to compare an UFunction with a declared delegate. For now I can compare two UFunction’s but not UFunction and delegate.
For example:
DECLARE_DYNAMIC_MULTICAST_DELEGATE_TwoParams(FOnCompleted, AActor*, Target, AActor*, Goal);
UPROPERTY(BlueprintCallable, BlueprintAssignable, Category = "Default")
FOnCompleted OnCompletedEvent;
void AMyActor::MyMethod(UObject* ObjectForCallback, FName EventName)
{
auto Function = ObjectForCallback->FindFunctionChecked(EventName);
// how to compare arguments types and order of the Function with OnCompletedEvent ?
}
I have some crashes for this reason and I need generic checker for such cases (log output).