# Attach Widget Component to Child Actor

**URL:** <https://forums.unrealengine.com/t/attach-widget-component-to-child-actor/490585>\
**Category:** UI\
**Tags:** child-actors, unreal-engine, Widget, question, actor-class\
**Created:** [November 4, 2021, 12:30pm UTC](https://forums.unrealengine.com/t/attach-widget-component-to-child-actor/490585 "2021-11-04T12:30:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Boscox](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/boscox/32/487719_2.png) [@Boscox](https://forums.unrealengine.com/u/Boscox)\
**Post date:** [November 4, 2021, 12:30pm UTC](https://forums.unrealengine.com/t/attach-widget-component-to-child-actor/490585/1 "2021-11-04T12:30:05Z")

</div>

I’m trying to attach a Widget Component to a Child Actor (that is Set with _SetChildActorClass_) through blueprint using the _AttachComponentToComponent_ and Snapping to target that doesn’t finally work

I’m wanting the Widget Component to follow the Child Actor along like it works for a Mesh or SkeletalMesh, the problem is the Widget Component does not Snap to Target following the Child Actor, it just stays still on the scene

Is there any proper way to do this ?

---

<div class="post-metadata">

**Author:** ![Boscox](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/boscox/32/487719_2.png) [@Boscox](https://forums.unrealengine.com/u/Boscox)\
**Post date:** [November 4, 2021, 12:50pm UTC](https://forums.unrealengine.com/t/attach-widget-component-to-child-actor/490585/2 "2021-11-04T12:50:39Z")

</div>

Okay made this to work!!

Just getting the RootComponent from Child Actor it simply worked as intended

![351637-attachwidgetcomponenttochildactor.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/4/b/a4b4776c8629139f8945fdcca751e4b15aff363d.png)
