Need Help: How to Display Data in a Widget from a Trigger Box

I’m trying to create a widget that will retrieve the data that has entered the trigger box and display it. My interaction actor and trigger box (BP_CashRegister) are working correctly and retrieving the right data from the data table, I checked this using print string.




The problem is that I don’t know how to get the widget to display this data. I have already tried this method, but it doesn’t work:


Hey @karemi1989 , welcome to the forum!

For that to work, you need to set the reference of the CashRegister when you create the Widget.

Create UI_CashRegister Widget → Set Cash Register (MyCashRegisterReference).

Also, it seems like you only want to update the text when a new item enters the trigger, so making a Bind to your text fields in the widget might not be the best option, since that will retrieve the information every single frame.

You can keep it that way, but you could also make a function “UpdateCashRegisterData” in your Widget and call it when something enters the trigger.

Minor optimization, so that’s up to you and your performance requirements.