Navigation
API > API/Plugins > API/Plugins/EnhancedInput > API/Plugins/EnhancedInput/UEnhancedInputUserSettings
Description
Resets each player mapped key to it's default value from the Input Mapping Context that it was registered from. If a key did not come from an IMC (i.e. it was added additionally by the player) then it will be reset to EKeys::Invalid.
| Name | ResetAllPlayerKeysInRow |
| Type | function |
| Header File | /Engine/Plugins/EnhancedInput/Source/EnhancedInput/Public/UserSettings/EnhancedInputUserSettings.h |
| Include Path | #include "UserSettings/EnhancedInputUserSettings.h" |
| Source | /Engine/Plugins/EnhancedInput/Source/EnhancedInput/Private/UserSettings/EnhancedInputUserSettings.cpp |
UFUNCTION (BlueprintCallable, Category="Enhanced Input|User Settings",
Meta=(AutoCreateRefTerm="FailureReason"))
virtual void ResetAllPlayerKeysInRow
(
const FMapPlayerKeyArgs & InArgs,
FGameplayTagContainer & FailureReason
)
Parameters
| Name | Remarks |
|---|---|
| InArgs | Arguments that contain the mapping name and profile ID to find the mapping to reset. |
| FailureReason | Populated with failure reasons if the operation fails. |