Save and save often
This commit is contained in:
21
Source/Aura/Private/AbilitySystem/Data/AttributeInfo.cpp
Normal file
21
Source/Aura/Private/AbilitySystem/Data/AttributeInfo.cpp
Normal file
@@ -0,0 +1,21 @@
|
||||
// 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();
|
||||
}
|
||||
Reference in New Issue
Block a user