77 game-dev skills for AI coding agents — Godot, Unity, Unreal, Phaser, PixiJS, three.js, Bevy, pygame, LÖVE, Roblox. Portable SKILL.md Agent Skills (the format Anthropic launched as Claude Skills), with a router that loads the right skill for your engine and task. Runs in Claude Code, Cursor, Kiro, Codex, Copilot, Gemini CLI and more.
Python agent-skillsai-agentsantigravityawesome-listclaude-codeclinecodexcursorgame-devgame-developmentgamedevgemini-cligithub-copilotgodotkirooh-my-piskillsunityunrealwindsurf
fix(unreal): correct Enhanced Input rebinding steps, avoid InputComponent shadowing, note 5.8 Combo deprecation
Kiro Crew0cef2afe7f3c
diff --git a/skills/unreal/unreal-enhanced-input/SKILL.md b/skills/unreal/unreal-enhanced-input/SKILL.mdindex 676e881..d9de39a 100644--- a/skills/unreal/unreal-enhanced-input/SKILL.md+++ b/skills/unreal/unreal-enhanced-input/SKILL.md@@ -34,7 +34,8 @@ multi-device design) → `input-systems`. The Pawn/Character C++ those bindings3. **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. WASDinto one Axis2D needs Negate on A/S and a Swizzle on W/S. Use **Triggers** (Pressed, Hold,- Tap) to decide *when* an action fires.+ Tap) to decide *when* an action fires. The **Combo** trigger is deprecated in UE 5.8; don't+ build new input on it.4. **Add the mapping context to the player** via the `EnhancedInputLocalPlayerSubsystem`(`AddMappingContext(IMC, Priority)`), usually in `BeginPlay`/possession.5. **Bind actions** to handlers by `ETriggerEvent` (`Triggered`, `Started`, `Completed`, …) on@@ -61,12 +62,13 @@ void AMyCharacter::BeginPlay()### 2. Bind actions and read values```cpp-void AMyCharacter::SetupPlayerInputComponent(UInputComponent* InputComponent)+void AMyCharacter::SetupPlayerInputComponent(UInputComponent* PlayerInputComponent){- Super::SetupPlayerInputComponent(InputComponent);+ Super::SetupPlayerInputComponent(PlayerInputComponent);// The component is an Enhanced Input component when the plugin is active.- if (UEnhancedInputComponent* EIC = Cast<UEnhancedInputComponent>(InputComponent))+ // (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);@@ -99,6 +101,10 @@ EnhancedInputAction IA_Move (Triggered)- **No input at all** — the mapping context was never added (`AddMappingContext`), or theplayer has no Local Player yet. Add it after possession/`BeginPlay`.+- **Input works in single player but not on a client, or stops after respawn** — `BeginPlay`+ ran before the controller possessed the pawn, so `GetController()` was null. Add the context+ in an override of `PawnClientRestart()`, which runs on the owning client after possession+ (Epic's Input Overview does this), or in the PlayerController.- **Link/compile error binding in C++** — `"EnhancedInput"` isn't in `Build.cs``PublicDependencyModuleNames`.- **WASD only moves on two keys / wrong axis** — Axis2D needs **Modifiers**: Negate on the@@ -116,7 +122,9 @@ EnhancedInputAction IA_Move (Triggered)- For a complete first-/third-person C++ Character with Enhanced Input (header + source,including look/jump and a control-rebind note), read `references/cpp-setup.md`.- Primary docs: "Enhanced Input in Unreal Engine"- (`https://dev.epicgames.com/documentation/en-us/unreal-engine/enhanced-input-in-unreal-engine`).+ (`https://dev.epicgames.com/documentation/en-us/unreal-engine/enhanced-input-in-unreal-engine`)+ and "Input Overview"+ (`https://dev.epicgames.com/documentation/en-us/unreal-engine/input-overview-in-unreal-engine`).## Related skillsdiff --git a/skills/unreal/unreal-enhanced-input/references/cpp-setup.md b/skills/unreal/unreal-enhanced-input/references/cpp-setup.mdindex 47e412e..57f2caa 100644--- a/skills/unreal/unreal-enhanced-input/references/cpp-setup.md+++ b/skills/unreal/unreal-enhanced-input/references/cpp-setup.md@@ -25,7 +25,7 @@ public:protected:virtual void BeginPlay() override;- virtual void SetupPlayerInputComponent(UInputComponent* InputComponent) override;+ virtual void SetupPlayerInputComponent(UInputComponent* PlayerInputComponent) override;// Assign these in the Blueprint subclass (IMC_/IA_ assets).UPROPERTY(EditAnywhere, Category = "Input")@@ -69,10 +69,10 @@ void AMyCharacter::BeginPlay()Subsystem->AddMappingContext(DefaultMappingContext, 0);}-void AMyCharacter::SetupPlayerInputComponent(UInputComponent* InputComponent)+void AMyCharacter::SetupPlayerInputComponent(UInputComponent* PlayerInputComponent){- Super::SetupPlayerInputComponent(InputComponent);- if (UEnhancedInputComponent* EIC = Cast<UEnhancedInputComponent>(InputComponent))+ Super::SetupPlayerInputComponent(PlayerInputComponent);+ if (UEnhancedInputComponent* EIC = Cast<UEnhancedInputComponent>(PlayerInputComponent)){EIC->BindAction(MoveAction, ETriggerEvent::Triggered, this, &AMyCharacter::Move);EIC->BindAction(LookAction, ETriggerEvent::Triggered, this, &AMyCharacter::Look);@@ -123,7 +123,17 @@ PublicDependencyModuleNames.AddRange(new string[]## Runtime rebinding note-Enhanced Input supports **Player Mappable Key Settings** on an Input Action plus the-`UEnhancedInputUserSettings` subsystem to remap and persist keys at runtime — the supported-path for a "rebind controls" menu in UE5. Mark the action's mapping as Player Mappable and-query/modify it through that subsystem rather than editing the `IMC_` asset.+The supported path for a "rebind controls" menu is Enhanced Input's **User Settings**, not+editing the `IMC_` asset:++1. Project Settings → Engine → Enhanced Input → User Settings → **Enable User Settings**.+2. On each remappable Input Action (or on individual mappings in the `IMC_`), set **Player+ Mappable Key Settings** with a unique **Name**; that name is the save key.+3. Register the context with the settings object: `Subsystem->GetUserSettings()->+ RegisterInputMappingContext(IMC)`, or pass `FModifyContextOptions` with+ `bNotifyUserSettings = true` to `AddMappingContext`.+4. Remap with `UEnhancedInputUserSettings::MapPlayerKey` (an `FMapPlayerKeyArgs` naming the+ mapping, slot and new key), reset with `UnmapPlayerKey`, and persist with `SaveSettings`.++The settings object belongs to the `UEnhancedInputLocalPlayerSubsystem` (one per local player),+so it exists only while that local player does.