I wish to write a function whose implementation is in Blueprint. Further, I would like this function to return a boolean value. I tried to create a BlueprintImplementableEvent that returned a boolean. However, despite no errors from UBT, this did not show up as an event in the BP editor.
The blueprint terminology is somewhat confusing… Events are basically just functions that have no return value (and this is why you can freely use “Delay” nodes in them, by the way). If you add a return type to your BlueprintImplementableEvent signature, it gets converted into a function and appears in a “Functions” menu rather than “Events”. Just override it.
Here is how it looks for me:|
//returns whether popup was created
UFUNCTION(BlueprintImplementableEvent)
bool ShowTutorialPopup(FGameplayTag Tag, APlayerController* OwnerController);