From the Blueprint Node CreateEvent I receive a Delegate object as output parameter. Now I want to use that delegate as parameter for custom function. However, when defining the paramters for that function, I am not able to select Delegate as parameter type.
How can I use a previously created Delegate object as parameter for a Blueprint function?
You cannot use delegates as function parameters, as delegates are not valid variable types as inputs. However, you can use delegates as inputs to a macro by using the wildcard variable.
Thanks for your quick reply. So you’re right, Macros would work here. Unfortunately in my case Macros are not an option, since I need to bind to an event dispatcher from within the Macro/Function, using the “Bind Event to …” BP node. This node cannot be used in a Macro.
i was able to take delegates in blueprint functions,
but oddly enough only when i created them by collapse to function,
not when i set up all inputs by hand
the delegate input param is not listed as option when i set types by hand…
It makes no sense why this requires such a hacky unintuitive solution. And it’s only half of a solution, really, e.g. what if I wanted to create an interface that accepts a delegate parameter?