Hi,
I’ve adapted the example HUD from the content examples to draw a progress bar as my player character uses an object. This is a little messy, but works perfectly.
However, it’s specific to this function, and it’s activated by constantly checking a bool to see if I wish to draw this specific bar in this specific place.
What I want to do is create a more generic function - one that I can call from anything that would require a bar above it. Like this:
But, of course I can’t do it this way, because this must be called via the ‘Receive draw HUD’ event.
What is the correct way to reach this kind of functionality?