How to send interface messages to individual NPCs from UI Widgets without hardcoding references?

Thank you very much!

In my setup, the content displayed in the Widget differs depending on the NPC. So, I used a Blueprint Interface (BPI) to send that Widget information from the Widget to the character.

At that point, the character’s BPI already had a reference to the NPC’s actor, so I promoted that reference to a variable in the character blueprint.

Then, I sent that actor reference variable from the character back to the Widget, and used that reference within the Widget to send notifications to the correct NPC.

Looking back, I wonder if that process was inefficient.

1 Like