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.
UFUNCTION(BlueprintImplementableEvent, Category = Tracking)
bool IsActorInJunction(AActor* Actor);
I also tried changing it to pass in the boolean as a reference, but this also did not generate the event. (Passing in a pointer causes a UBT error).
I have worked around this by having a BP exposed variable which I call an event to set this when I actually want the value. Is there a better way?