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.
23 results for line
Pattern: 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: GetPlayerController → GetPlayerViewPoint(outputs Location,Rotation) → GetForwardVector(Rotation) → Multiply_VectorFloat(A=Forward, B=TraceDistance) → Add_VectorVector(A=CameraLocation, B=Offset) → LineTraceByChannel(Start=CameraLocation, End=TraceEnd). GetPlayerViewPoint exec in='execute', exec out='then', outputs: 'Location' (Vector) and 'Rotation' (Rotator).
UKismetSystemLibrary::DrawDebugLine.
Draw Debug LineUE 5.0, 5.1, 5.2, 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo agoTraceChannel: ETraceTypeQuery::TraceTypeQuery1=Visibility, TraceTypeQuery2=Camera. DrawDebugType: None/ForOneFrame/ForDuration/Persistent.
LineTraceByChannelUE 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo agoPattern for snapping object to ground: GetActorLocation → Add Vector(Z=+1000) → as TraceStart. GetActorLocation → Subtract Vector(Z=1000) → as TraceEnd. LineTraceByChannel(Start=TraceStart, End=TraceEnd, TraceChannel=Visibility) → Branch(ReturnValue=true) → BreakHitResult → SetActorLocation(NewLocation=ImpactPoint) → SetActorRotation(NewRotation=MakeRotFromZ(Normal)) [align to surface normal]. MakeRotFromZ takes a 'Z' input Vector and outputs Rotator aligned to that normal.
Pattern: Input trigger → LineTraceSingle(CameraLocation, CameraLocation + ForwardVector * Distance, Visibility, false, MakeArray(Self), None) → Branch(ReturnValue) → True: BreakHitResult → HitActor → CastTo InteractableInterface → call Interact. End pin is world POSITION not direction. Use DrawDebugType ForOneFrame during dev.
Pattern: LineTraceByChannel → Branch(hit=true) → BreakHitResult → SpawnSystemAtLocation(SystemTemplate=NS_Impact, Location=ImpactPoint, Rotation=MakeRotFromX(ImpactNormal), Scale=(1,1,1), bAutoDestroy=true). Use MakeRotFromX with ImpactNormal to orient effect to surface normal. NS_ prefix is convention for Niagara Systems. SpawnSystemAtLocation is in UNiagaraFunctionLibrary. bAutoDestroy=true means the component cleans itself up after the effect completes.
string
A 3D point or direction (X, Y, Z). Used for positions, directions, scales. Z is up by default in UE.
Less_FloatFloatUE 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo ago