UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FCachedKeyToActionInfo Struct Reference

#include <InputComponent.h>

Public Member Functions

 FCachedKeyToActionInfo ()
 

Public Attributes

TWeakObjectPtr< UPlayerInputPlayerInput
 
uint32 KeyMapBuiltForIndex
 
TMap< FKey, TArray< TSharedPtr< FInputActionBinding > > > KeyToActionMap
 
TArray< TSharedPtr< FInputActionBinding > > AnyKeyToActionMap
 

Detailed Description

Struct that exists to store runtime cache to make key to action lookups faster.

Constructor & Destructor Documentation

◆ FCachedKeyToActionInfo()

FCachedKeyToActionInfo::FCachedKeyToActionInfo ( )
inline

Member Data Documentation

◆ AnyKeyToActionMap

TArray<TSharedPtr<FInputActionBinding> > FCachedKeyToActionInfo::AnyKeyToActionMap

Keep the AnyKey to action map separately as we don't want to have query the map to find it every time.

◆ KeyMapBuiltForIndex

uint32 FCachedKeyToActionInfo::KeyMapBuiltForIndex

What index of the player input's key mappings was the map built for.

◆ KeyToActionMap

TMap<FKey, TArray<TSharedPtr<FInputActionBinding> > > FCachedKeyToActionInfo::KeyToActionMap

Reverse lookup map to speed up evaluation of action bindings. Will be rebuilt via ConditionalBuildKeyMap when action bindings or key mappings are changed.

◆ PlayerInput

TWeakObjectPtr<UPlayerInput> FCachedKeyToActionInfo::PlayerInput

Which PlayerInput object this has been built for


The documentation for this struct was generated from the following file: