Skip to main content

AddInputMappingContexts

Apply multiple Input Mapping Contexts.
Inputs
AController*
required
The player controller to add the contexts to. Will attempt to get the LocalPlayer from the controller.
TArray<FUDCoreEnhancedInputContextData>
required
The contexts to apply.
bool
Whether to clear all previous contexts before applying the new ones.
Outputs
EUDSuccessStatus
Returns Success if the contexts were successfully applied.

RemoveInputMappingContexts

Remove multiple Input Mapping Contexts.
Inputs
AController*
required
The player controller to remove the contexts from. Will attempt to get the LocalPlayer from the controller.
TArray<TSoftObjectPtr<UInputMappingContext>>
required
The contexts to remove.
Outputs
EUDSuccessStatus
Returns Success if the contexts were successfully removed.

SwapInputMappingContexts

Swap a designated Input Mapping Context with a new one.
Inputs
AController*
required
The player controller to swap the contexts on. Will attempt to get the LocalPlayer from the controller.
TSoftObjectPtr<UInputMappingContext>
required
The context to swap out.
TSoftObjectPtr<UInputMappingContext>
required
The context to swap in.
int32
The priority to set the new context to.
bool
Whether to use the previous context’s priority when adding the new context.
Outputs
EUDSuccessStatus
Returns Success if the contexts were successfully swapped.