# Why isn't my delegate function getting called?

**URL:** <https://forums.unrealengine.com/t/why-isnt-my-delegate-function-getting-called/641080>\
**Category:** C++\
**Tags:** unreal-engine, UE5-0, CPP, question\
**Created:** [September 4, 2022, 11:49am UTC](https://forums.unrealengine.com/t/why-isnt-my-delegate-function-getting-called/641080 "2022-09-04T11:49:25Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![UNIT28Studios](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/unit28studios/32/1142186_2.png) [@UNIT28Studios](https://forums.unrealengine.com/u/UNIT28Studios)\
**Post date:** [September 28, 2023, 7:46pm UTC](https://forums.unrealengine.com/t/why-isnt-my-delegate-function-getting-called/641080/5 "2023-09-28T19:46:00Z")

</div>

This got me too! Adding the UFUNCTION specifier fixed it! thanks!!

This is definitely worth knowing. The problem is that if you don’t have UFUNCTION here, the project _won’t_ fail to compile, and you’ll get _no_ errors or warnings in the editor either. You’re just left wondering why your function isn’t being called.

Also, in many of the tutorials I’ve followed (like this one: [[Tutorial] Creating and Using Delegates C++ and Accessing them in Blueprints](https://forums.unrealengine.com/t/tutorial-creating-and-using-delegates-c-and-accessing-them-in-blueprints/9649)), and in the official docs, the importance of this isn’t specified.

---

_[View the full topic](https://forums.unrealengine.com/t/why-isnt-my-delegate-function-getting-called/641080)._
