I am interested in making a shop UI that appears when interacting with a specific placed actor. Initially, I was thinking it should be placed on the actor that brings up the menu and could be added to the player viewport via an interface. Alternatively, if I put it directly on the player, I feel I would still get to the same outcome of having the widget attatched to the viewport, but it might be easier to add items to the player inventory since I am already on the player blueprint. Is one of these more practical or is there a better option than both?
In either case, would it be better to make and delete the widget each time it is used, or just adjust the visibility? For hud elements that are frequently used, I think visibility would make sense, but for these more niche menus, I am unsure what the best approach would be since adjusting visibility may mean having several rarely used hud menus constantly on the viewport.