Knowledge base
Knowledge base
Knowledge base
Free, anonymous browsing of Unreal Engine Blueprint examples, node references, and best practices. The same content the WoalzCraft plugin uses to generate Blueprints.
21 results for hud
Pattern: BeginPlay → CreateWidget(WidgetClass, GetPlayerController(0)) → store as variable → AddToViewport(Widget, ZOrder=0). Remove: RemoveFromParent(Widget). Toggle: SetVisibility(Collapsed/Visible). Create once, toggle visibility — never recreate every frame. For interaction: SetInputModeUIOnly + SetShowMouseCursor.
Pattern: WBP_HealthBar with ProgressBar(HealthBar, BindWidget). Player BeginPlay: CreateWidget(WBP_HealthBar, PC) → SET WidgetRef → AddToViewport. On health change: WidgetRef → SetPercent(HealthBar, CurrentHealth/MaxHealth). Alternative: use property binding in widget designer for auto-update.
A UMG (Unreal Motion Graphics) UI Blueprint. Holds the visual hierarchy + the logic graph for menus, HUDs, and panels.
Dealing damage: Event → ApplyDamage(TargetActor, BaseDamage, InstigatorController, DamageCauser, DamageTypeClass). Receiving: EventAnyDamage → Damage output → Subtract_FloatFloat(CurrentHealth, Damage) → FClamp(Result, 0, MaxHealth) → SET CurrentHealth → Branch(CurrentHealth <= 0) → True: DestroyActor. Initialize CurrentHealth=MaxHealth in BeginPlay.
Pattern: EventAnyDamage → Subtract_FloatFloat(A=CurrentHealth, B=Damage) → Clamp(Value=Result, Min=0, Max=MaxHealth) → SetVariable(Health=ClampResult) → Branch(Condition=(Health <= 0)) → True: call OnDeath custom event. Variables needed: Health (float), MaxHealth (float). EventAnyDamage output pin is 'Damage' (float). Clamp inputs: 'Value', 'Min', 'Max'. All floats.
Apply Radial DamageUE 5.0, 5.1, 5.2, 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo agoPattern: Variables StartLocation(Vector), EndLocation(Vector). BeginPlay: SET StartLocation=GetActorLocation. Timeline MoveTimeline(Alpha 0→1 over Duration). Trigger overlap/button press → Play Timeline. Timeline Update: VLerp(StartLocation, EndLocation, Alpha) → SetActorLocation(Self, Result, bSweep=true). Finished: Delay → Reverse Timeline.
Apply Point DamageUE 5.0, 5.1, 5.2, 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo ago