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 Horizontal Box
Lays out children left-to-right. Same Size pin model as Vertical Box.
Lays out children top-to-bottom. Children's Size pins control how space is distributed.
Free-form widget layout — children positioned via anchors + offsets. Most flexible, but easy to misalign.
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.
Box Trace By ChannelUE 5.0, 5.1, 5.2, 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo agoLess_FloatFloatUE 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.
Pattern: Pickup actor with SphereCollision(overlap), StaticMesh visual. OnComponentBeginOverlap → CastTo PlayerCharacter → Success: call AddScore/AddItem interface on player → PlaySoundAtLocation → SpawnEmitterAtLocation → DestroyActor(self). Set collision to OverlapOnlyPawn for performance.
Pattern: 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.
Two collision shapes occupying the same space without blocking. Use for triggers (volume, pickup).