I’m creating a search box widget, and I want to make the user can bind a blueprint function with a match rule to check the typed text.
So I should create a delegate with return value to the user can bind a customize blueprint function.
//I defined the delegate.
DECLARE_DYNAMIC_DELEGATE_RetVal_TwoParams(bool, FOnMatchTypedText, const FString&, TypedText, const FString&, Suggestion);
//And create a variable with the delegate.
UPROPERTY(EditAnywhere, Category = Events)
FOnMatchTypedText OnMatchTypedText;
But it can’t bind any function in the blueprint.
How do I create a custom delegate with return value like FGetWidget?