unreal-enhanced-input
БесплатноБез исполняемых скриптовНе проверенUnreal Engine 5 (UE 5.8) player input with Enhanced Input: Input Actions (IA_), Mapping Contexts (IMC_), ETriggerEvent bindings and remappable keys. Use when…
от gamedev-skills★ 12 656 звёзд на GitHubОб этом скилле
Unreal Enhanced Input
Wire UE5 player input with data assets: Input Actions say what the player wants, Mapping Contexts say which keys produce it, modifiers shape the value and triggers decide when it fires. Targets UE 5.8, where Enhanced Input is the default and legacy axis/action mappings are deprecated.
When to use
- Adding or fixing movement, look, jump or fire input; creating
IA_/IMC_assets; applying modifiers and triggers; adding or swapping mapping contexts at runtime. - Binding actions in C++ (
UEnhancedInputComponent::BindAction) or Blueprint event nodes. - Building a key-rebinding menu with Enhanced Input User Settings.
When not to use: engine-neutral input architecture, buffering and rebinding policy →
input-systems. The Pawn or Character class and module setup → unreal-cpp-gameplay.
Coyote time and jump buffering → platformer.
Workflow
- Read the project. Check
EngineAssociation, find existingIA_*/IMC_*assets, andgrep -rn "AddMappingContext\|BindAction\|InputComponent" Sourceto see where input is already set up. Extend that path rather than adding a second one. C++ binding needs"EnhancedInput"in the module's*.Build.cs. - One Input Action per intent with the right Value Type:
Digital (bool)for buttons,Axis1D (float)for triggers or throttle,Axis2D (Vector2D)for move and look. - Map keys in an IMC. For WASD into one Axis2D action: W plain, S with Negate, D plain, A with Negate, and Swizzle Input Axis Values on W and S so they drive Y. Add Dead Zone on sticks. Triggers (Pressed, Released, Hold, Tap) go on the action or on one mapping.
- Add the context for the local player through
UEnhancedInputLocalPlayerSubsystem:: AddMappingContext(IMC, Priority)at a point where the pawn is possessed on the owning client:PawnClientRestarton the pawn, or the PlayerController. - Bind by trigger event.
Triggeredfor continuous values (move, look),StartedandCompletedfor press and release (jump). Read the value with theGet<T>()that matches the Value Type. - Remapping: enable User Settings and give each remappable mapping a Player Mappable Key Settings name; details in the reference.
- Check it (see Verify).
Patterns
Add the context and bind (C++ Character)
void AMyCharacter::PawnClientRestart()
{
Super::PawnClientRestart(); // runs on the owning client after possession
if (APlayerController* PC = Cast<APlayerController>(GetController()))
if (ULocalPlayer* LP = PC->GetLocalPlayer())
if (auto* Subsystem = LP->GetSubsystem<UEnhancedInputLocalPlayerSubsystem>())
Subsystem->AddMappingContext(DefaultMappingContext, /*Priority*/ 0);
}
void AMyCharacter::SetupPlayerInputComponent(UInputComponent* PlayerInputComponent)
{
Super::SetupPlayerInputComponent(PlayerInputComponent);
// Don't name the parameter InputComponent: that shadows AActor::InputComponent.
if (auto* EIC = Cast<UEnhancedInputComponent>(PlayerInputComponent))
{
EIC->BindAction(MoveAction, ETriggerEvent::Triggered, this, &AMyCharacter::Move);
EIC->BindAction(JumpAction, ETriggerEvent::Started, this, &ACharacter::Jump);
EIC->BindAction(JumpAction, ETriggerEvent::Completed, this, &ACharacter::StopJumping);
}
}
void AMyCharacter::Move(const FInputActionValue& Value)
{
const FVector2D Axis = Value.Get<FVector2D>(); // IA_Move is Axis2D
AddMovementInput(GetActorForwardVector(), Axis.Y);
AddMovementInput(GetActorRightVector(), Axis.X);
}
Blueprint equivalent
Event Possessed (or the PlayerController's BeginPlay)
-> Get Controller -> Cast To PlayerController -> Get Local Player
-> Enhanced Input Local Player Subsystem -> Add Mapping Context (IMC_Default, 0)
EnhancedInputAction IA_Move (Triggered) -> Action Value X/Y -> Add Movement Input
Verify
Say which of these you ran.
- Compile the module (
Build.bat/Build.shas inunreal-cpp-gameplay) and fix errors; a missingEnhancedInputdependency shows up here as unresolved symbols. - Validate assets:
UnrealEditor-Cmd <Project>.uproject -run=DataValidation -unattended. - Regression test (optional but cheap once written): a functional test in a test map can
inject an action with the subsystem's input injection functions (for example
InjectInputForAction) and assert the pawn moved. Run it withUnrealEditor-Cmd <Project>.uproject -ExecCmds="Automation RunTest Project.Functional Tests;Quit" -unattended -nullrhi -ReportExportPath="<dir>"(swap-nullrhifor-RenderOffscreenif the map needs a renderer). - Ask the user to start PIE, open the console, run
showdebug enhancedinput, press the keys in question and report which contexts are active, their priorities and the action values.Input.+key <Key>injects a key press from the console when no devi
Установить unreal-enhanced-input в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл unreal-enhanced-input?
Unreal Engine 5 (UE 5.8) player input with Enhanced Input: Input Actions (IA_), Mapping Contexts (IMC_), ETriggerEvent bindings and remappable keys. Use when wiring move, look or fire, building a rebind menu, or input does nothing, stops after respawn or fires every frame. Not for engine-neutral input design (`input-systems`) or the Character class (`unreal-cpp-gameplay`).
Как установить скилл unreal-enhanced-input?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл unreal-enhanced-input запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
frontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
от Anthropicwebapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
от Anthropicbrand-guidelines
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
от Anthropicweb-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…
от Anthropic