BandoWare / GameplayTags

GameplayTags implementation for Unity
Other
53 stars 3 forks source link

GetExplicitChildTags returns no GameplayTags #3

Closed D3LV4R closed 1 month ago

D3LV4R commented 1 month ago

Hi,

im not good using code of others so maybe the error is on my side.

I set the GameplayTag "Type.Character.Personal.Soldier.Soldier1" in the inspector. When I execute GetExplicitChildTags with the parameter "Type" I expect to get the GameplayTag "Type.Character.Personal.Soldier.Soldier1" but the list is empty.

public GameplayTagContainer Container = new();

void Start()
{
    List<GameplayTag> types = new();
    Container.GetExplicitChildTags("Type", types);
}

With the method GetChildTags the list is not empty so I think my set-up is correct. I debugged the code and I think the problem is the BinarySearch in GameplayTagContainerUtility.GetChildTags.