I'm making a plugin that I want to display a widget to the user. All the examples I see of creating a C++ widget, and adding it to the viewport, require modifying the game mode, or player character, or something that I wouldn't have access to, being a plugin.
How do I go about getting the HUD and adding a widget to the viewport without knowing the specific hud class in c++?
I've tried several different tutorials and youtube videos, but this is a plugin, so I can't change the player controller, which all of them do.