Set Timer By Event

I have a widget component in an actor blueprint that when set directly works just fine but I’m trying to put the widget in a data asset and from there set the widget on the actor and when doing that the widget appears but no ticks or set timer events will fire but every other event will.

This is the UserWidgetBlueprint when checking if the timer exists right after making the event it says false…

Data asset here

ItemBlueprint

probably because DataAssets dont have world context, generally they should be immutable too.

why are you adding the Widget to a DataAsset?

I was just trying to remove any hard references in the blueprint itself although UI probably doesn’t use much memory anyhow, I also couldn’t use a soft reference for the UI in the data asset, so I just decided to leave it how it is unless someone were to figure it out.

If the ui element is shown everytime the item is picked up, soft ref probably wouldn’t help much if it’s immediately loaded either way. As for the timer conundrum, like Auran said, PDAs don’t have a world context to access the timer manager with, so your best bet would be to put the timer in the widget and have the pda call the event on widget which sets timer. If various objects have unique UI elements like the fluid bar, you may want to implement an interface so the item pda can just call a generic UpdateItemUI interface event on the widget and give each item’s widget its own implementation. EG, where the lighter shows a fluid bar, a flashlight might show a battery meter.

Yeah, this all makes sense thanks for the help!