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.
22 results for mouse
On Left Mouse Button pressed → GetHitResultUnderCursorByChannel(TraceChannel=Visibility) → Branch(ReturnValue=true) → BreakHitResult → Check HitActor: IsValid(HitActor) → Branch → True: interact with HitActor. Check ground: use ImpactPoint as the world position clicked. GetHitResultUnderCursorByChannel is on PlayerController. Inputs: 'TraceChannel' (ETraceTypeQuery) and 'bTraceComplex' (bool). Output: 'HitResult' (struct) and 'ReturnValue' (bool). Use BreakHitResult to get ImpactPoint, HitActor, etc.
GetMousePositionUE 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo agoRoutes human input to the possessed Pawn. Owns mouse cursor, viewport access, and input mapping.
Pattern: Variables TargetArmLength(float), MinZoom(float)=200, MaxZoom(float)=2000, ZoomStep(float)=50, ZoomSpeed(float)=5. InputAxis MouseWheel: TargetArmLength = FClamp(TargetArmLength - AxisValue*ZoomStep, MinZoom, MaxZoom). Tick: SpringArm.TargetArmLength = FInterpTo(Current, TargetArmLength, DeltaSeconds, ZoomSpeed). FInterpTo provides smooth easing.
SetShowMouseCursorUE 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo agoAPlayerController property. Usually paired with SetInputModeUIOnly.
Set Show Mouse CursorUE 5.0, 5.1, 5.2, 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo agoAPlayerController method. Great for click-to-interact games.
Get Hit Result Under Cursor By ChannelUE 5.0, 5.1, 5.2, 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo agostring
Pattern: InputAxis MoveForward → Multiply_FloatFloat(A=AxisValue, B=1.0) → AddMovementInput(WorldDirection=GetActorForwardVector, ScaleValue=Product). Repeat for MoveRight with GetActorRightVector. Key pins: AddMovementInput inputs: 'WorldDirection' (Vector) and 'ScaleValue' (float). Input Axis event output pin is named 'Axis Value' (float).