When exporting a function from C++ to blueprint that has a delegate as parameter, the event created “on the fly” with “add custom event” creates an invalid event delegate.
Procedure:
1: Inside a Actor class, declare a delegate like this:
DECLARE_DYNAMIC_DELEGATE_OneParam(FTestDelegate, bool, Example);
2: Create an UFunction inside the Actor class
UFUNCTION(BlueprintCallable, Category="Test")
void TestCondition(FTestDelegate Condition);
3: Create a Blueprint class and call the previous function:
4: In the condition parameter select “Add custom event”
5: The blueprint, if compiled, will show an error because the signature doesn’t match
This newly created event’s input can’t be changed aswell.
The event that should’ve been created is the following: