# Using delegates as function parameters

**URL:** <https://forums.unrealengine.com/t/using-delegates-as-function-parameters/40867>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [September 5, 2015, 11:09pm UTC](https://forums.unrealengine.com/t/using-delegates-as-function-parameters/40867 "2015-09-05T23:09:20Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_f3fb80e6](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_f3fb80e6](https://forums.unrealengine.com/u/anonymous_user_f3fb80e6)\
**Post date:** [September 5, 2015, 11:09pm UTC](https://forums.unrealengine.com/t/using-delegates-as-function-parameters/40867/1 "2015-09-05T23:09:20Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![JmDevTx](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JmDevTx](https://forums.unrealengine.com/u/JmDevTx)\
**Post date:** [September 5, 2015, 11:22pm UTC](https://forums.unrealengine.com/t/using-delegates-as-function-parameters/40867/2 "2015-09-05T23:22:06Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_f3fb80e6](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_f3fb80e6](https://forums.unrealengine.com/u/anonymous_user_f3fb80e6)\
**Post date:** [September 5, 2015, 11:53pm UTC](https://forums.unrealengine.com/t/using-delegates-as-function-parameters/40867/3 "2015-09-05T23:53:27Z")

</div>

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.

Any ideas how I could work around that problem?

---

<div class="post-metadata">

**Author:** ![DevilsD](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/devilsd/32/890854_2.png) [@DevilsD](https://forums.unrealengine.com/u/DevilsD)\
**Post date:** [September 6, 2015, 1:04am UTC](https://forums.unrealengine.com/t/using-delegates-as-function-parameters/40867/4 "2015-09-06T01:04:09Z")

</div>

Store a reference to that Object maybe? That way you can bind and unbind to its Event Delegates all you like.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_f3fb80e6](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_f3fb80e6](https://forums.unrealengine.com/u/anonymous_user_f3fb80e6)\
**Post date:** [September 6, 2015, 3:50pm UTC](https://forums.unrealengine.com/t/using-delegates-as-function-parameters/40867/5 "2015-09-06T15:50:36Z")

</div>

> [@DevilsD;372774](#):
>
> Store a reference to that Object maybe? That way you can bind and unbind to its Event Delegates all you like.

Apparently I cannot do that from within a Macro ☹

---

<div class="post-metadata">

**Author:** ![DevilsD](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/devilsd/32/890854_2.png) [@DevilsD](https://forums.unrealengine.com/u/DevilsD)\
**Post date:** [September 7, 2015, 6:07am UTC](https://forums.unrealengine.com/t/using-delegates-as-function-parameters/40867/6 "2015-09-07T06:07:02Z")

</div>

> [@haimat;373138](#):
>
> Apparently I cannot do that from within a Macro ☹

Why are you trying to Bind to an Event within a Macro?

Store the reference as a Variable that is part of the BP then you can access its Event Delegates within that BP.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_f3fb80e6](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_f3fb80e6](https://forums.unrealengine.com/u/anonymous_user_f3fb80e6)\
**Post date:** [September 7, 2015, 8:44am UTC](https://forums.unrealengine.com/t/using-delegates-as-function-parameters/40867/7 "2015-09-07T08:44:21Z")

</div>

> [@DevilsD;373516](#):
>
> Why are you trying to Bind to an Event within a Macro?

I don’t. What I am trying to do is to call the “Bind to …” BP node from within a Macro.  
Which apparently is not possible.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_7206c359](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_7206c359](https://forums.unrealengine.com/u/anonymous_user_7206c359)\
**Post date:** [October 8, 2015, 8:56am UTC](https://forums.unrealengine.com/t/using-delegates-as-function-parameters/40867/8 "2015-10-08T08:56:36Z")

</div>

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…

---

<div class="post-metadata">

**Author:** ![PhoenixMarket](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/phoenixmarket/32/980948_2.png) [@PhoenixMarket](https://forums.unrealengine.com/u/PhoenixMarket)\
**Post date:** [October 31, 2018, 8:07am UTC](https://forums.unrealengine.com/t/using-delegates-as-function-parameters/40867/9 "2018-10-31T08:07:33Z")

</div>

You can add delegate parameter to function by dragging event pin from event dispatcher and dropping it on the function.

 ![258155-delegate.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/e/5/2e5f4841fd25061e555e22899693eb111cc523c7.png)  
 ![258155-delegate.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/e/5/2e5f4841fd25061e555e22899693eb111cc523c7.png)

---

<div class="post-metadata">

**Author:** ![athuldevin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@athuldevin](https://forums.unrealengine.com/u/athuldevin)\
**Post date:** [November 30, 2023, 5:56pm UTC](https://forums.unrealengine.com/t/using-delegates-as-function-parameters/40867/10 "2023-11-30T17:56:31Z")

</div>

probably you re looking for event dispatchers. check this out [Event Dispatchers / Delegates Quick Start Guide | Unreal Engine 4.27 Documentation](https://docs.unrealengine.com/4.27/en-US/ProgrammingAndScripting/ActorCommunication/EventDispatcherQuickStart/#:~:text=Event%20Dispatchers%20are%20an%20Actor,which%20the%20listening%20Actors%20subscribe).

---

<div class="post-metadata">

**Author:** ![Mad.King](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mad.king/32/761302_2.png) [@Mad.King](https://forums.unrealengine.com/u/Mad.King)\
**Post date:** [November 13, 2024, 8:55pm UTC](https://forums.unrealengine.com/t/using-delegates-as-function-parameters/40867/11 "2024-11-13T20:55:58Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![PhoenixMarket](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/phoenixmarket/32/980948_2.png) [@PhoenixMarket](https://forums.unrealengine.com/u/PhoenixMarket)\
**Post date:** [November 16, 2024, 6:43am UTC](https://forums.unrealengine.com/t/using-delegates-as-function-parameters/40867/12 "2024-11-16T06:43:06Z")

</div>

I know, probably there are some kind of limitations 🤷‍♂️

---

<div class="post-metadata">

**Author:** ![aProperFox](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/aproperfox/32/932101_2.png) [@aProperFox](https://forums.unrealengine.com/u/aProperFox)\
**Post date:** [April 16, 2025, 5:04pm UTC](https://forums.unrealengine.com/t/using-delegates-as-function-parameters/40867/13 "2025-04-16T17:04:56Z")

</div>

I agree with Mad.King about this being a ridiculous workaround, but you just blew my mind with this post and I will be using this many times. Thank you!!!

---

<div class="post-metadata">

**Author:** ![Monsieur\_Sim](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Monsieur\_Sim](https://forums.unrealengine.com/u/Monsieur_Sim)\
**Post date:** [June 22, 2026, 6:43pm UTC](https://forums.unrealengine.com/t/using-delegates-as-function-parameters/40867/14 "2026-06-22T18:43:27Z")

</div>

You **can** make an interface with a delegate parameter. It’s wacky but once you got a function with a delegate parameter in a blueprint, you can simply copy it from the BP’s functions list and paste it in your Interface’s functions list. Just be sure to paste an empty function or you’ll get a compilation error.

**DISCLAIMER :** This is wacky on purpose. Delegates are dangerous objects if incorrectly handled. It can crash at cooking, crash the game if the delegate’s owner is destroyed, create memory leaks, and if bad luck, it can corrupt .uassets.  
Use it for small systems, client only, not interacting with multiplayer. Do not build an entire complex system around it, take notes of everywhere you use a delegate parameter, and make extensive testing.  
In the best practice, you should use C++ for passing delegates.

Anyway, here, we ball. Here is the way :

1. available function in another BP, with the delegate parameter made by dragging a delegate node to the function’s input node

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/e/a/bea9ac8c00b6f5d23ecb0ba7179dde0dbd54b337.png)

1. pasted and renamed function in the Blueprint Interface

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/0/f/a0f8129f1bf3fa7955ab811fbb437b68d1843add.png)

---

<div class="post-metadata">

**Author:** ![Auran131](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Auran131](https://forums.unrealengine.com/u/Auran131)\
**Post date:** [June 23, 2026, 3:34am UTC](https://forums.unrealengine.com/t/using-delegates-as-function-parameters/40867/15 "2026-06-23T03:34:53Z")

</div>

> [@Monsieur\_Sim](#):
>
> You **can** make an interface with a delegate parameter. It’s wacky but once you got a function with a delegate parameter in a blueprint

you can do it in c++ too, its only wacky because it needs to know the signature and you cant choose that in a dropdown

in c++ you can Declare it so no problem
