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);
}
}
});
浙公网安备 33010602011771号