Hey alx,
There’s a great example available in our Content Examples that you can look at for reference. Open Blueprint_HUD map and do a search for BP_HUD_Example Blueprint in Content Browser.
You can also check out this tutorial from one of our users, :
That dives into C++, if you’re comfortable with that.
Hope that helps!