remove_mapping_from_context
Unbind a key from an InputAction in a saved Enhanced Input mapping context to resolve conflicting mappings or retire a verb while saving the mapping context to disk.
Instructions
Unbind a key from an InputAction in a saved Enhanced Input mapping context -- how you free a key that list_all_input_mappings flagged as conflicting, or retire a verb. Identified by context + action + key, so only the first mapping of that action to that key goes; the assets themselves survive. The engine moves the context's last mapping into the freed slot, so mapping indexes (add_input_trigger, list_input_triggers) can change. The context is saved, and a removal succeeds only when it reaches disk; a mapping that is not there succeeds with removed false and already_absent true, and saves nothing.
Returns: { context_name, action_name, key, removed, already_absent, mapping_count, saved, save_error? }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | Key name of the mapping to remove. | |
| key_name | No | Input key name (e.g. SpaceBar, Gamepad_FaceButton_Bottom) | |
| action_name | No | Short asset name of the InputAction. | |
| action_path | No | Asset path of the Input Action | |
| context_name | No | Short asset name of the InputMappingContext. | |
| context_path | No | Asset path of the Input Mapping Context |