How do I set a 3d Widget Component?

Hey everyone,

So I am working on a third person game, and I want to have a speech bubble widget blueprint that I can set to different widgets easily throughout the game. I have added a Widget Component to my Character BP, and am trying to figure out how to set the empty component with a widget I have made. I haven’t figured this out yet, and am in need of some help.

Thanks!

You can dynamically spawn a new widget component as needed (top) and then set it to the desired widget or use the existing component and switch the widget that is embedded inside (bottom)

Hello Everynone, thanks for your quick response! So I tried the bottom method, in a few ways and the widget did not change at all. First I tried adding a variable that acted as a reference to the widget I wanted my component changed to (I plugged this variable into the widget pin on the Set Widget node). Then I tried using a Get all Widgets of Class node, getting a copy, and plugging that into the Widget pin, but still with no results. Am I referencing my widget wrong, or do I need to do something else as well?

Not sure.

Here’s the minimum amount of nodes required to set Widget Component’s widget with a key press:

Consider attaching a screenshot with the setup you’ve got.

Ah! That’s what I needed. Thanks so much :slight_smile: