Gameplay Tag Container property with multiple allowed categories displays an incorrect warning

A new warning icon was added for Gameplay Tag Containers in 5.7 and I believe it is incorrect. GameplayTagContainerCustomization::CustomizeHeader() has the following condition:

bool bHasValidCategories = CurrentTagContainer.IsEmpty() || MetaDataCategories.IsEmpty() || CurrentTagContainer.HasAll(MetaDataCategories);

This displays a warning if a property allows 2 or more Categories and a tag is selected that fits 1 of the 2 categories. I’m changing this line to HasAny instead of HasAll for our project. Is this a bug? Or is there a different meaning of Categories for tag properties?

[Attachment Removed]

Steps to Reproduce
Add a gameplay tag from one of the allowed categories such as Test.Epic to this container, and an incorrect warning will display.

UPROPERTY(EditAnywhere, meta = (Categories = "Test,Foo"))
FGameplayTagContainer SomeTags;



[Attachment Removed]

Hi [mention removed],

Thanks for reporting the issue. I’ve reviewed it, and what you described makes sense.

The Categories metadata is used only to filter which gameplay tag categories are shown in the picker. Because of that, it doesn’t make sense to emit a warning when not all categories are met. I’ve reported this issue to Epic so they can address it properly.

Your proposed fix also looks correct, and I’ll pass it along to Epic as well.

Once Unreal starts working on the issue, a tracking page will be published here: Unreal Engine Issues and Bug Tracker (UE\-360388)

Best regards,

Joan

[Attachment Removed]