22 lines
550 B
C++
22 lines
550 B
C++
// Copyright Echo Devgroup
|
|
|
|
|
|
#include "AbilitySystem/Data/AttributeInfo.h"
|
|
|
|
FAuraAttributeInfo UAttributeInfo::FindAttributeInfoForTag(const FGameplayTag& AttributeTag, bool bLogNotFound) const
|
|
{
|
|
for (const FAuraAttributeInfo& Info : AttributeInformation)
|
|
{
|
|
if (Info.AttributeTag.MatchesTagExact(AttributeTag))
|
|
{
|
|
return Info;
|
|
}
|
|
}
|
|
|
|
if (bLogNotFound)
|
|
{
|
|
UE_LOG(LogTemp, Error, TEXT("AttributeInfo.cpp - Attribute not found - [%s] on AttributeInfo [%s]"), *AttributeTag.ToString(), *GetNameSafe(this));
|
|
}
|
|
return FAuraAttributeInfo();
|
|
}
|