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.
29 results for ui
Set Input Mode Game And UIUE 5.0, 5.1, 5.2, 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo agoSetInputMode_GameAndUIUE 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo agoA UMG (Unreal Motion Graphics) UI Blueprint. Holds the visual hierarchy + the logic graph for menus, HUDs, and panels.
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.
SetInputMode_UIOnlyUE 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo agoSet Input Mode UI OnlyUE 5.0, 5.1, 5.2, 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo agoDefines where a Canvas Panel widget pins to its parent (corners, edges, center). Anchored UI scales with screen size.
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 agoPattern: BPI_Interactable interface with Interact(APawn* Caller) and GetInteractText(). Player Tick: GetPlayerCameraManager → GetCameraLocation/Rotation → LineTraceSingle(CamLoc, CamLoc + Forward*InteractDistance) → BreakHitResult → HitActor → DoesImplementInterface(BPI_Interactable) → True: show UI prompt, store as FocusedActor. Interact input → call Interact(Self) on FocusedActor.
Pattern: WBP_MainMenu with WidgetSwitcher containing panels (Main, Options, Credits). Buttons: OnClicked → SetActiveWidgetIndex(WidgetSwitcher, PanelIndex). Play button: RemoveFromParent → OpenLevel(GameMap). Quit: QuitGame. Level BP BeginPlay: CreateWidget(MainMenu) → AddToViewport → SetInputModeUIOnly → SetShowMouseCursor(true).