how to remove the binded actions from k
Announcement
Collapse
No announcement yet.
How to remove the binded actions from key
Collapse
X
-
Hi Ryuikuya,
You can access the input bindings in the Edit>Editor Preferences> Keyboard Shortcuts menu. If you are looking to bind this key to a function in game, please check the Edit> Project Settings> Input menu. These give you access to the keyboard shortcuts and inputs for the editor and your specific project.Adam Davis | Marketplace Support | Epic Games
How to report a bug? | Installation & Setup issues? | Answerhub Bug Reports | Twitter
-
Originally posted by Bruce Nesbit View PostThere is RemoveActionMapping in UInputSettings
Following is my code. as you can see I remap actions binding.but it can not work right now.
it just work in next time I restart my game.
const FName name = FName(*function_name);
const FKey oldKey = FKey(*old_key_name);
const UInputSettings* DefaultInputSettings = GetDefault<UInputSettings>();
const FInputActionKeyMapping fInputActionKeyMapping(name, oldKey);
((UInputSettings*)DefaultInputSettings)->RemoveActionMapping(fInputActionKeyMapping);
((UInputSettings*)DefaultInputSettings)->SaveKeyMappings();
aShooterPlayerController->PlayerInput->ForceRebuildingKeyMaps();
Comment
Comment