FGameplayTag.MatchesTag(FGameplayTag)
example:
Cast<UAuraAbilitySystemComponent>(AbilitySystemComponent)->EffectAssetTags.AddLambda(
[this](const FGameplayTagContainer& AssetTags)
{
for (const FGameplayTag Tag : AssetTags)
{
FGameplayTag MessageTag = FGameplayTag::RequestGameplayTag(FName("Message"));
if (Tag.MatchesTag(MessageTag))
{
const FUIWidgetRow* Row = GatDataTableRowByTag<FUIWidgetRow>(MessageWidgetDataTable, Tag);
if (!Row) return;
MessageWidgetRowDelegate.Broadcast(*Row);
}
}
});
posted on 2025-08-26 15:58  偷懒的阿贤  阅读(6)  评论(0)    收藏  举报