# How do I hook into "Attach To" events

**URL:** <https://forums.unrealengine.com/t/how-do-i-hook-into-attach-to-events/475432>\
**Category:** Pipeline & Plugins\
**Tags:** attach-to-actor, unreal-engine, editor, question\
**Created:** [December 4, 2020, 8:53pm UTC](https://forums.unrealengine.com/t/how-do-i-hook-into-attach-to-events/475432 "2020-12-04T20:53:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_a0ad4677](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a0ad4677](https://forums.unrealengine.com/u/anonymous_user_a0ad4677)\
**Post date:** [December 4, 2020, 8:53pm UTC](https://forums.unrealengine.com/t/how-do-i-hook-into-attach-to-events/475432/1 "2020-12-04T20:53:58Z")

</div>

I’m working with a plugin that’s detecting SelectionChanged events, but I need to track when a user attaches one actor to another in the editor. This is via right-click Context Menu \> Attach To… I can’t seem to find anything in the documentation. Is there a Menu Event, or an Actor event I could tie into to detect when this happens?

Thank you!

---

<div class="post-metadata">

**Author:** ![Kehel18](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kehel18](https://forums.unrealengine.com/u/Kehel18)\
**Post date:** [December 5, 2020, 4:21pm UTC](https://forums.unrealengine.com/t/how-do-i-hook-into-attach-to-events/475432/2 "2020-12-05T16:21:58Z")

</div>

Hello! One - you can use override **OnAttachmentChanged** method of **USceneComponent**. The other one - **FLevelActorAttachedEvent** with getter **OnLevelActorAttached()** of **UEngine**.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_a0ad4677](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a0ad4677](https://forums.unrealengine.com/u/anonymous_user_a0ad4677)\
**Post date:** [December 15, 2020, 3:03pm UTC](https://forums.unrealengine.com/t/how-do-i-hook-into-attach-to-events/475432/3 "2020-12-15T15:03:06Z")

</div>

Sorry, meant to get back to you on this. This was exactly what I was looking for! Thank you very much! 🙂
