# How to attach widget to head of enemy character?

**URL:** <https://forums.unrealengine.com/t/how-to-attach-widget-to-head-of-enemy-character/2764773>\
**Category:** Blueprint\
**Tags:** unreal-engine, question\
**Created:** [September 11, 2026, 4:48pm UTC](https://forums.unrealengine.com/t/how-to-attach-widget-to-head-of-enemy-character/2764773 "2026-09-11T16:48:14Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ruslanmin2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ruslanmin2](https://forums.unrealengine.com/u/Ruslanmin2)\
**Post date:** [September 11, 2026, 4:48pm UTC](https://forums.unrealengine.com/t/how-to-attach-widget-to-head-of-enemy-character/2764773/1 "2026-09-11T16:48:14Z")

</div>

How to attach widget to head of enemy character which will be scaled always the same and positioned correctly? Everything what I have tried not working, widget always incorrectly positioned. Please send me solution, help me to create such functionality! How to create widget correctly and how to position widget above head which will be always correct showed??

Please help.

Ruslan

---

<div class="post-metadata">

**Author:** ![BRGEzedeRocco](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/brgezederocco/32/1216890_2.png) [@BRGEzedeRocco](https://forums.unrealengine.com/u/BRGEzedeRocco)\
**Post date:** [September 11, 2026, 6:02pm UTC](https://forums.unrealengine.com/t/how-to-attach-widget-to-head-of-enemy-character/2764773/2 "2026-09-11T18:02:17Z")

</div>

Hello @Ruslanmin2 ,  
You could try the following.

Add a Widget Component to your enemy character. Then add the following logic to Event Tick so the widget always faces the player’s camera.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/c/f/8cf484230c23cca772d23edddcb1e38169c1845e.png)

This keeps the widget attached to the character while ensuring it is always readable from the player’s point of view.

For the widget itself, you can create it however you like. In my example, I simply used a Canvas Panel with an Image and a Text widget, both anchored to the center.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/a/f/3af06d2976123baecc012e407f0953aafe7a9cb1.png)

With this setup, the widget attached to your enemy should always be displayed correctly.  
If not, could you provide more details about what you’re trying to achieve? A more specific example would make it easier to understand the exact behavior you’re looking for and suggest a more appropriate solution.

Hope it helps!

---

<div class="post-metadata">

**Author:** ![illspiritx](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@illspiritx](https://forums.unrealengine.com/u/illspiritx)\
**Post date:** [September 12, 2026, 12:37am UTC](https://forums.unrealengine.com/t/how-to-attach-widget-to-head-of-enemy-character/2764773/3 "2026-09-12T00:37:42Z")

</div>

I find it’s usually better to just attach the widget to capsule, and move it so it’s just above head in BP viewport. Attaching it to a bone or socket tends to make it jump around as the character animates. If you scroll way down in the details tab of the widget component to User Interface, and set space to “Screen” it will retain the Draw Size values just below that no mater how far away it is. Will probably want to set visibility to hidden if you do it this way tho while npcs are out of combat tho. So the screen isn’t full of health bars/nameplates from every enemy in the world.

In my action-rpg project, all the characters have an event which fires when health changes. In that I first set helthbar to visible, then set a timer for 6 seconds, which fires another event to set it back to hidden.

---

<div class="post-metadata">

**Author:** ![Ruslanmin2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ruslanmin2](https://forums.unrealengine.com/u/Ruslanmin2)\
**Post date:** [September 12, 2026, 11:53am UTC](https://forums.unrealengine.com/t/how-to-attach-widget-to-head-of-enemy-character/2764773/4 "2026-09-12T11:53:22Z")

</div>

I want to attach widget to bone, and also use Space of Widget “Screen”. Widget the same as you designed!

---

<div class="post-metadata">

**Author:** ![Vahab](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/vahab/32/1148756_2.png) [@Vahab](https://forums.unrealengine.com/u/Vahab)\
**Post date:** [September 12, 2026, 1:50pm UTC](https://forums.unrealengine.com/t/how-to-attach-widget-to-head-of-enemy-character/2764773/5 "2026-09-12T13:50:20Z")

</div>

Hi, please follow these steps to achieve what you want:

1. Create a new **User Widget** with an Overlay as the main parent in the hierarchy, and add your child widget.

2. Add a **Widget Component** to the character and place it as a child under the mesh component

3. Select the **Widget Component** , set the **Widget Class** , then change the **Space** to **Screen**. So, under the **Sockets** category, choose a bone you want to attach it to.

---

<div class="post-metadata">

**Author:** ![Ruslanmin2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ruslanmin2](https://forums.unrealengine.com/u/Ruslanmin2)\
**Post date:** [September 14, 2026, 10:33am UTC](https://forums.unrealengine.com/t/how-to-attach-widget-to-head-of-enemy-character/2764773/6 "2026-09-14T10:33:29Z")

</div>

I am creating widget like that:

 ![Screenshot 2026-09-12 145936](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/0/1/301ce66516141d897ca461cdec520aed7fb00ce0.png)

Also creating widget dynamically im blueprint and attach to head socket:

 ![Screenshot 2026-09-12 145412](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/9/f/f9fdebf52b9ea81fee501ffb12b5974cf255b906.png)

But I getting such problems with positioning of widget above head:

 ![Screenshot 2026-09-12 145623](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/7/6/d7612478f84e6cf13bec8ebb4f4ea759ca0e6ec7.png)

 ![Screenshot 2026-09-12 145642](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/4/4/34495772536d798ec27a27bd034752dae7dc0526.png)

How I can correctly position widget above head which will always showed correctly no matter which distance to enemy character??

Please help me!

Ruslan

---

<div class="post-metadata">

**Author:** ![Vahab](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/vahab/32/1148756_2.png) [@Vahab](https://forums.unrealengine.com/u/Vahab)\
**Post date:** [September 15, 2026, 10:25am UTC](https://forums.unrealengine.com/t/how-to-attach-widget-to-head-of-enemy-character/2764773/8 "2026-09-15T10:25:17Z")

</div>

I have already shared the solution. The issue is the offset from the center in your widget. Please use Overlay (I mentioned this before) as the parent instead of Canvas, and ensure the marker is exactly centered in your widget.

_Please don’t forget to mark it as the answer to the topic_ 🙂
