Files
Aura-TopDownRPG-GAS/Source/Aura/Private/AbilitySystem/Data/AttributeInfo.cpp
2025-10-15 18:50:55 -04:00

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();
}