# Add Delegate to USceneComponent::OnAttachmentChanged 

**URL:** <https://forums.unrealengine.com/t/add-delegate-to-uscenecomponent-onattachmentchanged/2702186>\
**Category:** Platform & Builds\
**Tags:** unreal-engine, Epic-Pro-Support, question\
**Created:** [January 22, 2026, 9:52pm UTC](https://forums.unrealengine.com/t/add-delegate-to-uscenecomponent-onattachmentchanged/2702186 "2026-01-22T21:52:02Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [January 22, 2026, 9:52pm UTC](https://forums.unrealengine.com/t/add-delegate-to-uscenecomponent-onattachmentchanged/2702186/1 "2026-01-22T21:52:02Z")

</div>

Hi,

I’m working on a project where I would benefit from a way to respond to actors being attached to something. The only way I found was if I have a custom root component that overrides OnAttachmentChanged but this is one of the things that you usually realize later and it’s a lot of work to change a blueprints root component to a derived class since you can’t change it but rather replace it.

Currently, USceneComponent::OnAttachmentChanged() is a virtual function with an empty default implementation. If a delegate was added even if it’s not a blueprint accessible one it would allow owning actors to react to being attached and detached which I often missed. Is there a performance reason this is not a thing because I would assume a check for a bound delegate and subsequent call to delegate wouldn’t add that much overhead?

I’m thinking of modifying our engine to add it but wanted some input.

Thank you!

[Attachment Removed]

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [January 22, 2026, 9:52pm UTC](https://forums.unrealengine.com/t/add-delegate-to-uscenecomponent-onattachmentchanged/2702186/2 "2026-01-22T21:52:06Z")

</div>

**Steps to Reproduce** [Attachment Removed]

---

<div class="post-metadata">

**Author:** ![Ari\_Epic](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ari_epic/32/956630_2.png) [@Ari\_Epic](https://forums.unrealengine.com/u/Ari_Epic)\
**Post date:** [January 23, 2026, 9:32am UTC](https://forums.unrealengine.com/t/add-delegate-to-uscenecomponent-onattachmentchanged/2702186/3 "2026-01-23T09:32:34Z")

</div>

Hi!

To speculate on why we don’t already have a delegate there, I assume that giving extending classes the ability to override `OnAttachmentChanged` has been sufficient for our and licensees’ needs so far.

Attachments happen rarely enough (especially at runtime) that I don’t foresee adding a delegate having a perceivable effect on performance. If you want to be able to respond to the attachment of any scene component, I would just add a delegate to that virtual function if it were my project. It’s a small and safe engine modification.

[Attachment Removed]

---

<div class="post-metadata">

**Author:** ![Ari\_Epic](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ari_epic/32/956630_2.png) [@Ari\_Epic](https://forums.unrealengine.com/u/Ari_Epic)\
**Post date:** [January 26, 2026, 8:59am UTC](https://forums.unrealengine.com/t/add-delegate-to-uscenecomponent-onattachmentchanged/2702186/4 "2026-01-26T08:59:52Z")

</div>

It would be a good way for others to indicate their desire for this change at least! If you create a pull request, add the link here so other future answer seekers can vote on it 👍

[Attachment Removed]

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [January 25, 2026, 5:33pm UTC](https://forums.unrealengine.com/t/add-delegate-to-uscenecomponent-onattachmentchanged/2702186/5 "2026-01-25T17:33:46Z")

</div>

Hi Ari!

Thanks for the answer. I’ll do that. Do you think this is something that would warrant a pull request? It seems like a small, safe change and could be a nice addition for others as well.

[Attachment Removed]

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [January 27, 2026, 1:04pm UTC](https://forums.unrealengine.com/t/add-delegate-to-uscenecomponent-onattachmentchanged/2702186/6 "2026-01-27T13:04:07Z")

</div>

Sounds good! Thank you Ari!

[Attachment Removed]
