# Is it possible to store delegates in a container class dynamically

**URL:** <https://forums.unrealengine.com/t/is-it-possible-to-store-delegates-in-a-container-class-dynamically/2311012>\
**Category:** C++\
**Tags:** unreal-engine, Blueprint, CPP, question\
**Created:** [January 30, 2025, 9:50pm UTC](https://forums.unrealengine.com/t/is-it-possible-to-store-delegates-in-a-container-class-dynamically/2311012 "2025-01-30T21:50:54Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![STRiFE.x](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/strife.x/32/969826_2.png) [@STRiFE.x](https://forums.unrealengine.com/u/STRiFE.x)\
**Post date:** [January 31, 2025, 10:55pm UTC](https://forums.unrealengine.com/t/is-it-possible-to-store-delegates-in-a-container-class-dynamically/2311012/5 "2025-01-31T22:55:51Z")

</div>

It’s possible if you _“abuse”_ the C++ reflection system of Unreal. In fact, I’m working on a level scripting tool that is capable of binding to any dynamic delegate with any params, and then calling any UFunction on an actor without casting. I shared my notes that I made while trying to understand how delegates work: [Here is how C++ delegate macros work internally](https://forums.unrealengine.com/t/here-is-how-c-delegate-macros-work-internally/2149694)

Keep in mind that this is not something that I’d recommend doing as a beginner.

---

_[View the full topic](https://forums.unrealengine.com/t/is-it-possible-to-store-delegates-in-a-container-class-dynamically/2311012)._
