How to get static mesh name and input it into widget

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

  • assuming we’re using an interface:

  • assuming we’re tracing and looking at stuff:

  • assuming actors carry names we predefine ourselves:

The end result here would produce:


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

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:

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.

1 Like