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.
71 results for input
Setup: Create InputAction assets (IA_Move Axis2D, IA_Jump Digital). Create InputMappingContext (IMC_Default) mapping keys to IAs. BeginPlay: GetPlayerController → GetEnhancedInputLocalPlayerSubsystem → AddMappingContext(IMC_Default, 0). Bind: EnhancedInputAction IA_Move → Triggered pin → ActionValue → BreakVector2D → AddMovementInput.
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).
SETUP (once per project): 1. Create Input Mapping Context (IMC_Default) in content browser. 2. Create Input Actions (IA_Move, IA_Jump, IA_Look) — set Value Type. 3. In IMC_Default, map keys to each IA. IN CHARACTER EventBeginPlay: GetController → CastTo<PlayerController> → GetSubsystem(UEnhancedInputLocalPlayerSubsystem) → AddMappingContext(IMC_Default, Priority=0). IN EVENT GRAPH: Right-click → search IA_Move → 'IA_Move (EnhancedInputAction)' node appears with Triggered/Started/Completed exec outputs and 'Action Value' data output. For 2D movement: IA_Move → GetAxis2D(ActionValue) → X to AddMovementInput(GetActorRightVector, ScaleValue=X), Y to AddMovementInput(GetActorForwardVector, ScaleValue=Y).
Legacy Input System. The axis name must match one defined in Project Settings → Input → Axis Mappings.
GetInputAxisValueUE 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo agoWhy: The '{pin}' input on '{node}' must receive a value — either a wire from another node OR a default value in the pin field — but it's empty. Fix: Click on the '{pin}' input field on the '{node}' node. Either type a literal value (e.g. 5 for an integer), or drag a wire from another node's output. If you don't know what to connect, hover over the pin for a tooltip describing what it expects.
UEnhancedInputLocalPlayerSubsystem::AddMappingContext. Get subsystem via GetEnhancedInputLocalPlayerSubsystem.
Add Mapping ContextUE 5.1, 5.2, 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo agoWorldDirection is usually GetActorForwardVector or axis input. ScaleValue is axis value (-1 to 1).
AddMovementInputUE 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo agoThe modern UE input system (5.0+). InputAction + InputMappingContext replace the legacy axis/action mappings.
APlayerController method. Hides mouse cursor and captures input for game.
Set Input Mode Game OnlyUE 5.0, 5.1, 5.2, 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo agoK2Node_EnhancedInputAction. ActionValue type depends on InputAction (Bool, Float, Axis2D, Axis3D). Triggers: Started, Ongoing, Triggered, Completed, Canceled.
EnhancedInputActionUE 5.1, 5.2, 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo ago