# Inter-Component Communication via Delegates

**URL:** <https://forums.unrealengine.com/t/inter-component-communication-via-delegates/1832844>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, delegates, Components, CPP, question\
**Created:** [April 30, 2024, 9:32am UTC](https://forums.unrealengine.com/t/inter-component-communication-via-delegates/1832844 "2024-04-30T09:32:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mgtGecko](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mgtGecko](https://forums.unrealengine.com/u/mgtGecko)\
**Post date:** [April 30, 2024, 9:32am UTC](https://forums.unrealengine.com/t/inter-component-communication-via-delegates/1832844/1 "2024-04-30T09:32:12Z")

</div>

Let’s assume the following **Actor** , which has **ComponentA** and **ComponentB**.

```auto
          Actor
            |
     ---------------
     | |
ComponentA ComponentB

```

Let’s assume **ComponentA** needs to keep **ComponentB** updated about a value, in case this value ever changes. **ComponentB** would then need to adjust some of its own values in response.

And let’s also assume, I wanted to solve this problem using **Delegates** — keeping both of the **Components** loosely coupled and modular as they in theory should be. No hard references.

I know about the different types of **Delegates** and their usage and I have created my fair share of **Components** over the last few months while learning. So I should be familiar with the basics needed to solve this problem.

Which brings me to the question of the correct or at least most common approach to this scenario with a minimum of coupling and a maximum of modularity.  
Should I forward the **Delegate** from **ComponentA** to **ComponentB** via the owning **Actor** to prevent direct coupling between the two **Components** or is there a better approach I am not aware of?
