Blueprint callable class with delegates as arguments

I’d like to make a blueprint callable function with a delegate as a parameter. Something like SetTimerByEvent event that can take function delegate. Compiler does not like it when I try making a UFUNCTION with a delegate parameter, saying parameters have to be UCLASS, USTRUCT or UENUM. I’m wondering if there is something I can do to make it work, or is it something doable from blueprints only?

You should be able to do it if your delegate is declared with DECLARE_DYNAMIC_DELEGATE_xxx. If it doesn’t work, post your code.

It works, thank you!

I was trying with DECLARE_DELEGATE and it wasn’t working.