Had a discussion on Discord about HudPainter and it's use cases - the documentation kind of just leaves me with more questions than answers.
https://sbox.game/dev/doc/systems/ui/painting-a-hud/
https://sbox.game/dev/doc/systems/ui/painting-a-hud/
Each camera has a HudPainter that can be used to draw onto the HUD. You do this every frame, in any Update function. This is more efficient than Razor panels, but it is not interactive.
What exactly is the use case for this?
When it says more efficient, is that in terms of performance? Or more efficient in the time/effort it takes to do, whatever HudPainter is designed to do?
Why would/should HudPainter be used instead of a screen panel + Razor component combo? What can we do with this that we couldn't or shouldn't do in Razor?