i am making a turn by turn game and each character has a gimick mechanic with a unique UI that matches it, i want that Widget to not be garbage collected when not in the viewport mid fight, how do i do that ? For now i set the widget as a variable in my playable character actor and it seems to do the trick but i can’t find any official doccumentation on the subject.
Yes holding the widget reference is somewhere right approach so it can be fired/made visible again.
You can create the widget->Hold reference to it
You can either add/remove from viewport or hud, better keep it in viewport and adjust visibility as ->visible/collapsed (if commonly fired widget)