WB_Hotkeys redesigned to use enhanced input. Amazing!

This commit is contained in:
2026-04-17 02:18:30 -04:00
parent 26399a6a15
commit ae1ad7640d
10 changed files with 169 additions and 11 deletions

View File

@@ -159,6 +159,13 @@ public:
UFUNCTION(BlueprintPure, Category = "Input|Key")
static FKey GetKeyByNameString(const FString &Name);
// Find an InputAction within an InputMappingContext, matched by asset
// name (e.g. "IA_Jump"). Returns nullptr if the mapping context is
// null or no action with the given name is mapped.
//
UFUNCTION(BlueprintPure, Category = "Input")
static UInputAction *FindInputActionByName(const UInputMappingContext *MappingContext, const FString &Name);
// Get the actor's forward vector multiplied by a speed.
// If SnapToXY is true, the forward vector is projected
// onto the XY plane and renormalized before scaling.