# How to get static mesh name and input it into widget

**URL:** <https://forums.unrealengine.com/t/how-to-get-static-mesh-name-and-input-it-into-widget/1430568>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, question\
**Created:** [November 29, 2023, 3:54am UTC](https://forums.unrealengine.com/t/how-to-get-static-mesh-name-and-input-it-into-widget/1430568 "2023-11-29T03:54:48Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [November 29, 2023, 8:39am UTC](https://forums.unrealengine.com/t/how-to-get-static-mesh-name-and-input-it-into-widget/1430568/5 "2023-11-29T08:39:19Z")

</div>

Since this can be done in too many ways, we’d need to know how you’re handling things at the moment in order to suggest something that fits right into your existing system.

> calling a bind variable

- assuming this is what you mean in the widget:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/4/4/74436848eb4ed2539dd670d0c0fbc39b9e1a39fa.png)

- assuming we’re using an interface:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/3/28357c854cca1f51c9e1ce06ca3340d735389d99.png)

- assuming we’re tracing and looking at stuff:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/c/d/2cd5491d2612b4fdec9a0f3576f9fc5b8c7a8e8d.png)

- assuming actors carry names we predefine ourselves:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/c/c/0ccd3daa800952898164a1f143fae0d64909f535.jpeg)

The end result here would produce:

* * *

As you can see I had to assume a lot since we know squat about your setup. 🫠

_Disclaimer: the above can be set up much better - it all really depends on the features and behaviours you need._

* * *

Also, here’s a link to a slightly more nuanced behaviour:

> [@Third person crosshair object highlight troubles](https://forums.unrealengine.com/t/third-person-crosshair-object-highlight-troubles/252041/7):
>
> Do tell how it goes. This can be set up with very little ticking, actually. You could even line trace just a couple of times per second, and the player wouldn’t notice. But this particular ticking is something I wouldn’t worry about. @ConvenientBox How close is this to what you’re trying to accomplish?

> [@Third person crosshair object highlight troubles](https://forums.unrealengine.com/t/third-person-crosshair-object-highlight-troubles/252041/13):
>
> The communication in the example revolves around Inheritance + Interface - a potent combo, imho. the base class implements the interface (which children inherit) the widget uses the same interface - calls children receive can be propagated: Actor → Widget Component → Widget without casting or finding user widgets (this can be done in many ways, though) the player has a collision sphere and sends an interface call to overlapped actors as we approach: [image] [image] Above, handl…

Here, each interactive actor has its own widget. There is a project link in the second post - consider taking it apart to see how it works. Should work fine in UE5 once updated.

---

_[View the full topic](https://forums.unrealengine.com/t/how-to-get-static-mesh-name-and-input-it-into-widget/1430568)._
