UE4 按键解绑换绑
具体要用:UInputSettings::GetInputSettings()
简单测试:
TArray outMappings;
UInputSettings::GetInputSettings()->GetActionMappingByName(TEXT("Jump"), outMappings);
for (int i = 0; i < outMappings.Num(); i++)
{
UInputSettings::GetInputSettings()->RemoveActionMapping(outMappings[i]);
}
//移除一个已经添加的按键事件
//UInputSettings::GetInputSettings()->RemoveActionMapping(ActionMap);
//保存按键事件表
//UInputSettings::GetInputSettings()->SaveKeyMappings();