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.
20 results for textblock
UTextBlock::SetText. Bind widget reference with BindWidget meta or GetWidgetFromName.
Set Text (Text)UE 5.0, 5.1, 5.2, 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo agoCall on a TextBlock widget variable from your Widget BP. Use 'Format Text' or 'Conv_StringToText' to build the Text value.
SetTextUE 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo agoPattern: WBP_DamageNumber widget with TextBlock. On damage dealt: CreateWidget(WBP_DamageNumber) → SetText(Damage amount) → AddToViewport. Tick: ProjectWorldLocationToScreen(DamageLocation + UpOffset) → SetPositionInViewport. Timeline Alpha 0→1 over 1s: SetColorAndOpacity(FadeOut) + move up. OnFinished: RemoveFromParent. Alternative: use WidgetComponent in world space.
METHOD 1 - Function Binding (auto-updates every frame, easy but has perf cost): In Widget BP: select TextBlock → Details → Content → Text → click 'Bind' → Create Binding → connect your data (e.g. GetPlayerHealth as Text). METHOD 2 - Event-driven (recommended, update only when needed): In owning actor: when data changes → CastTo<WBP_HUD>(HUDWidget) → call custom function 'UpdateHealth(NewHealth)' on widget. In Widget BP: UpdateHealth function → SetText(HealthText, Conv_FloatToString(NewHealth)). KEY: Function bindings run every frame. For frequently-changing data (Tick-speed), use Event-driven approach instead to avoid perf issues.
Displays read-only text in UMG. Use a Binding or Text variable to update at runtime.
Localizable, formatted player-facing text. Use FText/Text variables for UI strings. String is for internal logic only.
K2Node_FormatText. Use {ArgName} placeholders in format string. Adds input pins per argument automatically.
Format TextUE 5.0, 5.1, 5.2, 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo agoPattern: EventBeginPlay → CreateWidget(OwningPlayer=GetPlayerController, WidgetType=WBP_MyWidget) → SetVariable(HUDWidget=ReturnValue) → CastTo<WBP_MyWidget>(HUDWidget) → Cast Succeeded → AddToViewport(ZOrder=0). Always store widget reference in a variable. CreateWidget inputs: 'OwningPlayer' (PlayerController) and 'WidgetType' (class). Exec in='execute', exec out='then'.
Always pass a valid PlayerController as OwningPlayer. Cast the ReturnValue to your specific widget class.
CreateWidgetUE 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo agoACharacter method. Returns UCharacterMovementComponent.
Get Character MovementUE 5.0, 5.1, 5.2, 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo ago