create_hud_widget
Build a first-person HUD Widget Blueprint with health, stamina, ammo, and targets-eliminated counters, all bound to live player variable values for real-time updates.
Instructions
Create a complete HUD Widget Blueprint from Ch. 7.
Builds a full first-person HUD with health bar, stamina bar, ammo counter, and targets-eliminated counter. Each element uses bindings to display live player variable values.
Mirrors the HUD created in Chapters 7-8 of the book:
Health/Stamina: Progress Bars with float bindings
Ammo: Text Block with integer binding
Targets Eliminated / Target Goal: Text Blocks
Args: widget_name: Widget Blueprint name health_bar: Include a health progress bar stamina_bar: Include a stamina progress bar ammo_counter: Include an ammo count text display targets_counter: Include a targets eliminated counter target_goal_display: Include a target goal counter round_display: Include a round number display folder_path: Content browser folder
KB: see knowledge_base/06_UI_UMG_SYSTEMS.md#overview Example: create_hud_widget()
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| health_bar | No | ||
| folder_path | No | /Game/UI | |
| stamina_bar | No | ||
| widget_name | No | WBP_HUD | |
| ammo_counter | No | ||
| round_display | No | ||
| targets_counter | No | ||
| target_goal_display | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |