# Bind Widget

**URL:** <https://forums.unrealengine.com/t/bind-widget/2602621>\
**Category:** Blueprint\
**Tags:** ue4-editor, unreal-engine, editor, Widget, Blueprint, question\
**Created:** [July 13, 2025, 12:13pm UTC](https://forums.unrealengine.com/t/bind-widget/2602621 "2025-07-13T12:13:41Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Roy\_Wierer.Seda145](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/roy_wierer.seda145/32/906551_2.png) [@Roy\_Wierer.Seda145](https://forums.unrealengine.com/u/Roy_Wierer.Seda145)\
**Post date:** [July 13, 2025, 2:58pm UTC](https://forums.unrealengine.com/t/bind-widget/2602621/2 "2025-07-13T14:58:09Z")

</div>

Would like some mor details on your current setup (screenshots, souce code always help, and give back to the community).

If you already have an item actor, the item actor itself would contain a widget component. I assume you already set up whis widget component to display the item name (say, during the actor’s BeginPlay or similar setup event). Then you’d only have to change the visibility of the widget when the cursor hovers over the item actor right? Then I’m not sure where your problem is in the code?

And are you a blueprint or c++ user?

References:

There’s the widget component which can be added to any actor, to render any UserWidget:

> [UWidgetComponent | Unreal Engine 5.6 Documentation | Epic Developer Community](https://dev.epicgames.com/documentation/en-us/unreal-engine/API/Runtime/UMG/Components/UWidgetComponent)

There’s the “BeginPlay” method, which can be used by an actor to perform self setup. You can pass on its item name to its widget component there:

> [BeginPlay() method. What is it?](https://forums.unrealengine.com/t/beginplay-method-what-is-it/348250)

There are methods to get content under the cursor position:

> [Using a Single Line Trace (Raycast) by Channel in Unreal Engine | Unreal Engine 5.6 Documentation | Epic Developer Community](https://dev.epicgames.com/documentation/en-us/unreal-engine/using-a-single-line-trace-raycast-by-channel-in-unreal-engine)

> [APlayerController::DeprojectMousePositionToWorld | Unreal Engine 5.6 Documentation | Epic Developer Community](https://dev.epicgames.com/documentation/en-us/unreal-engine/API/Runtime/Engine/GameFramework/APlayerController/DeprojectMousePositionToWorld)

> 

My idea is, if you have already set up the widget component to use the item name from its owning Item Actor, the challenge that remains is that you need to control the Widget Component visibility. It should be visible when the cursor is over the Item Actor, and invisible when not? Or where else are you facing a challenge?

> [@GlasyaLabolasHun1](#):
>
> I found a video online but that was for a first person gameplay with linetrace but i want make it work when i move the cursor over. I can set up the items individually but then I need a lots of widgets and items. Please help me.

The point of programming is to set up this logic just once in a base class. You’d inject the item information (item name, an icon, maybe a description), but one code class can handle that injection.

> [@GlasyaLabolasHun1](#):
>
> I found a video online

Linking that video and pointing out where you get stuck helps as well.

---

_[View the full topic](https://forums.unrealengine.com/t/bind-widget/2602621)._
