Navigation
API > API/Plugins > API/Plugins/EnhancedInput > API/Plugins/EnhancedInput/FEnhancedActionKeyMapping
Description
Compares if two TArray of UObjects contain the same number and types of objects, but doesn't compare their values.
This is needed because TArray::operator== returns false when the objects' inner values differ. And for keeping old Trigger states, we need their comparison to ignore their current values.
| Name | CompareByObjectTypes |
| Type | function |
| Header File | /Engine/Plugins/EnhancedInput/Source/EnhancedInput/Public/EnhancedActionKeyMapping.h |
| Include Path | #include "EnhancedActionKeyMapping.h" |
template<typename T>
static bool CompareByObjectTypes
(
const TArray< TObjectPtr< T > > & A,
const TArray< TObjectPtr< T > > & B
)