[=Bruce Nesbit;93235]
There is **RemoveActionMapping **in UInputSettings
[/]
thank you for you answer. do you know how to update my remapping in the game.
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();