unreal-enhanced-input
O que ela faz
Esta skill explica como configurar os controles do jogador na Unreal Engine 5 usando o sistema Enhanced Input. Ela é para desenvolvedores que adicionam controles de movimento, câmera e ações.
Quando usar
- ✓Quando você está adicionando controles de movimento, olhar, pulo ou disparo na Unreal Engine 5.
- ✓Quando você precisa criar assets de input action ou mapping context para um jogador.
- ✓Quando você quer conectar input actions a código em C++ ou em Blueprint.
Link da skill
https://github.com/gamedev-skills/awesome-gamedev-agent-skills/blob/main/skills/unreal/unreal-enhanced-input/SKILL.mdCopie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.
Como usar
O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.
Mensagem pronta para colar
Para Claude Code, Codex ou Cursor: rode na pasta do projeto e a skill fica instalada.
Baixe o SKILL.md e coloque na pasta de skills do seu agente.
Exemplo do que pedir para a IA
“Configure o movimento com WASD e um botão de pulo para o meu personagem da Unreal usando o sistema de entrada mais novo.”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
Ela explica como criar input actions com um tipo de valor, mapear teclas para elas em um contexto, moldar a entrada com modificadores e vincular as ações ao código por tipo de evento de gatilho.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do GitHub.
Unreal Enhanced Input
Wire player input the modern UE5 way with the Enhanced Input system: data-driven Input Actions and Mapping Contexts instead of the legacy Project Settings axis/action mappings. Targets UE 5.8 (Enhanced Input is the default; legacy input is deprecated).
When to use
- Use when adding movement/look/jump/fire input, creating Input Action (
IA_) and Input Mapping Context (IMC_) assets, applying modifiers/triggers, adding a mapping context to a player, or binding actions in C++ or Blueprints. - Use when the project has
IA_*/IMC_*assets or referencesEnhancedInput.
When not to use: engine-agnostic input architecture (rebinding strategy, buffering,
multi-device design) → input-systems. The Pawn/Character C++ those bindings live in →
unreal-cpp-gameplay.
Core workflow
- Enable the module/plugin. Enhanced Input is on by default in UE5; for C++ binding add
"EnhancedInput"toPublicDependencyModuleNamesin*.Build.cs. - Create Input Actions (
IA_). Each has a Value Type:Digital (bool)for buttons,Axis1D (float)for triggers,Axis2D (Vector2D)for movement/look. - Create an Input Mapping Context (
IMC_) that maps keys/buttons to those actions. Use Modifiers to shape raw input (Negate, Swizzle Input Axis Values, Dead Zone) — e.g. WASD into one Axis2D needs Negate on A/S and a Swizzle on W/S. Use Triggers (Pressed, Hold, Tap) to decide when an action fires. The Combo trigger is deprecated in UE 5.8; don't build new input on it. - Add the mapping context to the player via the
EnhancedInputLocalPlayerSubsystem(AddMappingContext(IMC, Priority)), usually inBeginPlay/possession. - Bind actions to handlers by
ETriggerEvent(Triggered,Started,Completed, …) on theEnhancedInputComponent, and read theFInputActionValuein the handler. - Verify in PIE; the Enhanced Input debugging console commands
(
showdebug enhancedinput) show which actions trigger and their values.
Patterns
1. Add the mapping context (C++ Character)
void AMyCharacter::BeginPlay()
{
Super::BeginPlay();
if (APlayerController* PC = Cast<APlayerController>(GetController()))
if (ULocalPlayer* LP = PC->GetLocalPlayer())
if (auto* Subsystem = LP->GetSubsystem<UEnhancedInputLocalPlayerSubsystem>())
Subsystem->AddMappingContext(DefaultMappingContext, /*Priority*/ 0);
}
// DefaultMappingContext is a UPROPERTY(EditAnywhere) TObjectPtr<UInputMappingContext>.
2. Bind actions and read values
void AMyCharacter::SetupPlayerInputComponent(UInputComponent* PlayerInputComponent)
{
Super::SetupPlayerInputComponent(PlayerInputComponent);
// The component is an Enhanced Input component when the plugin is active.
// (Don't name the parameter InputComponent: that shadows AActor::InputComponent.)
if (UEnhancedInputComponent* EIC = Cast<UEnhancedInputComponent>(PlayerInputComponent))
{
EIC->BindAction(MoveAction, ETriggerEvent::Triggered, this, &AMyCharacter::Move);
EIC->BindAction(LookAction, ETriggerEvent::Triggered, this, &AMyCharacter::Look);
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>(); // Axis2D action
AddMovementInput(GetActorForwardVector(), Axis.Y);
AddMovementInput(GetActorRightVector(), Axis.X);
}
3. Blueprint equivalent (node flow)
Event BeginPlay
-> Get Controller -> Cast To PlayerController -> Get Local Player
-> Get EnhancedInputLocalPlayerSubsystem -> Add Mapping Context (IMC_Default, Priority 0)
// IA_Move is exposed as its own event node in the Character's Event Graph:
EnhancedInputAction IA_Move (Triggered)
-> Action Value (Vector2D) -> Add Movement Input (Forward * Y, Right * X)
Pitfalls
- No input at all — the mapping context was never added (
AddMappingContext), or the player has no Local Player yet. Add it after possession/BeginPlay. - Input works in single player but not on a client, or stops after respawn —
BeginPlayran before the controller possessed the pawn, soGetController()was null. Add the context in an override ofPawnClientRestart(), which runs
Perguntas frequentes
O que é um Input Mapping Context?
É um asset que liga teclas e botões a input actions, e pode ser adicionado a um jogador.
Para que servem os modificadores?
Eles alteram a entrada bruta, por exemplo invertendo o valor de uma tecla para que o movimento para trás funcione.
Isso cobre o design de remapeamento de controles?
Não em profundidade. O design de remapeamento neutro em relação à engine é coberto por uma skill de entrada separada.
Detalhes
Descrição original do autor
Set up player input in Unreal Engine 5 with Enhanced Input: Input Actions, Input Mapping Contexts, modifiers and triggers, adding the mapping context, and binding actions by ETriggerEvent. Use when wiring movement/look/jump input, creating IA_/IMC_ assets, binding in C++ or Blueprints, or when the user mentions Enhanced Input, Input Mapping Context, Input Action, IA_/IMC_, or ETriggerEvent.
Popularidade
- Estrelas no GitHub
- 6,6 mil
- Posição no ranking
- #13855
- Licença
- Apache-2.0
- Atualizada em
- 28/10/2026
Comentários
- …
Mais skills deste repositório
router
6,6 milAjuda seu agente a escolher a skill certa de desenvolvimento de jogos para cada pedido, detectando sua engine e o tipo de tarefa que você precisa.
ai-behavior-trees-utility-ai
6,6 milAjuda seu agente a criar uma árvore de comportamento e um sistema de IA por utilidade para inimigos e personagens que escolhem ações por prioridade e pontuação.
audio-design
6,6 milEnsina seu agente a fazer a mixagem de áudio de jogos: barramentos, volume em decibéis, redução de volume sob diálogos, música adaptativa e variação de efeitos sonoros.
camera-systems
6,6 milAjuda seu agente a criar câmeras de jogo que seguem o personagem com suavidade, ficam dentro da fase e giram ou olham ao redor em 3D.
Skills parecidas
diffs
394 milPermite que seu agente gere um diff real e compartilhável das edições, como link de visualização ou arquivo de imagem, em vez de um resumo escrito à mão.
coding-agent
394 milAjuda seu agente a passar um trabalho grande de programação para o Codex, Claude Code ou OpenCode em segundo plano e acompanhar o andamento.
gh-issues
394 milAjuda seu agente a encontrar issues do GitHub, escolher quais resolver e abrir pull requests com correções, acompanhando os comentários de revisão.