25 lines
627 B
C++
25 lines
627 B
C++
// Copyright Echo Devgroup
|
|
|
|
|
|
#include "Input/AuraInputConfig.h"
|
|
|
|
#include "InputAction.h"
|
|
|
|
const UInputAction* UAuraInputConfig::FindAbilityInputActionForTag(const FGameplayTag& InputTag,
|
|
bool bLogNotFound) const
|
|
{
|
|
for (const FAuraInputAction& Action : AbilityInputActions)
|
|
{
|
|
if (Action.InputAction && Action.InputTag == InputTag)
|
|
{
|
|
return Action.InputAction;
|
|
}
|
|
}
|
|
|
|
if (bLogNotFound)
|
|
{
|
|
UE_LOG(LogTemp, Error, TEXT("Can't find AbilityInputAction for InputTag [%s], on InputConfig [%s]"), *InputTag.ToString(), *GetName());
|
|
}
|
|
return nullptr;
|
|
}
|