A HUD displays gameplay information.

Examples:

Update UI when data changes instead of every frame when possible.

void UpdateHUD()
{
    healthBar.value = health;
    healthText.text = health.ToString();
}