Download

Issues updating a dynamic widget when it is within a pawn

I have a dynamic widget. A progress bar within the widget is updated based on an in game variable which is cast to it. The progress bar updates when the widget is added to the view-port as a screen based HUD. No problem here but it won’t work when I add it to a pawn in my game where I need it to be shown ‘in-world’.

I added a widget component to my pawn blueprint and chose the dynamic widget class which I had already created. Nothing happens in game play ie. the progress bar doesn’t update, even if I chose screen or world settings. This is a dynamic widget but there is no direct interaction from the player. Should it be changed to an interaction widget component or do I need to change something in the settings?