unregister_input_key_mapping
Revert a player's input key mapping to its default key by name and slot, clearing the runtime override. Updates Enhanced Input user settings without deleting the mapping row.
Instructions
Resets a player input mapping back to its default key at runtime via UEnhancedInputUserSettings::UnMapPlayerKey (EnhancedInputUserSettings.h). Inverse of register_input_key_mapping; locates the mapping by name + slot and clears the player override (does not need new_key, does not delete the row). The call fails when the engine refuses it, with its reasons in failure_tags.
Returns: { applied: bool, mapping_name: string, slot: string, failure_tags: [string] }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slot | No | "First" | "Second" | "Third" | "Fourth" (default "First"); EPlayerMappableKeySlot enum | |
| mapping_name | Yes | FName of the source mapping inside an already-mapped IMC (required) | |
| player_index | No | Optional local player index used to resolve the PlayerController (default 0). | |
| player_controller_name | No | Optional editor-world APlayerController actor name (defaults to first local player) |