Is there a way to iterate over gameplay definitions?

I’ve built a system around gameplay tags that’s leveraging the fact that they are built in a tree format. Is there any way to iterate over a subsection of gameplay tag definitions (not a tag container)?

For example, say that I have this set of tags:
A.B.1
A.B.2
A.B.3
A.C.1
A.C.2
A.C.3.X
A.C.3.X.Y

Is there any way to iterate over or get an array of, say, A.C? So the values returned/iterated over would be A.C.1, A.C.2, A.C.3, A.C.3.X, and A.C.3.X.Y?

I guess another way of asking the question is is there a way to get all of the children of A.C?

Try this

#include "GameplayTagsManager.h"

FGameplayTag Parent = FGameplayTag::RequestGameplayTag("A.C");
FGameplayTagContainer Children = UGameplayTagsManager::Get().RequestGameplayTagChildren(Parent);
1 Like

That did it. Thanks. :slight_smile:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.