Is it possible to make a delegate property optional to blueprints? ie
UDELEGATE()
DECLARE_DYNAMIC_DELEGATE_OneParam(FMessageBoxCallback, const FKey&, KeyPressed);
USTRUCT(BlueprintType)
struct FMessageBoxData
{
UPROPERTY(BlueprintReadWrite)
FMessageBoxCallback ConfirmCallback;
UPROPERTY(BlueprintReadWrite)
FMessageBoxCallback CancelCallback;
};
I want to make ConfirmCallback and CancelCallback optional for blueprints. Right now 99% of my implementation for this does nothing on cancel, but I still have to give it a callback that doesn’t do anything. Is this possible?
Thanks,