Navigation
API > API/Plugins > API/Plugins/StateTreeModule
HasAnyTags / HasAllTags condition Succeeds if the specified tag container has ANY or ALL of the tags in the other container.
Condition can be used with multiple configurations:
Has ANY Tags: exact match 'false': TagContainer {"A.1"} has any of OtherContainer {"A","B"} will SUCCEED TagContainer {"A"} has any of OtherContainer {"A.1","B"} will FAIL
exact match 'true': TagContainer {"A","B"} has any of OtherContainer {"A.1"} will FAIL
If TagContainer is empty/invalid it will always fail.
Has ALL Tags: exact match 'false': TagContainer {"A.1","B.1"} has all of OtherContainer {"A","B"} will SUCCEED TagContainer {"A","B"} has all of OtherContainer {"A.1","B.1"} will FAIL
exact match 'true': TagContainer {"A.1","B.1"} has all of OtherContainer {"A","B"} will FAIL
If TagContainer is empty/invalid it will always SUCCEED, because there were no failed checks.
| Name | FGameplayTagContainerMatchCondition |
| Type | struct |
| Header File | /Engine/Plugins/Runtime/StateTree/Source/StateTreeModule/Public/Conditions/StateTreeGameplayTagConditions.h |
| Include Path | #include "Conditions/StateTreeGameplayTagConditions.h" |
Syntax
USTRUCT (DisplayName="Has Tags", Category="Gameplay Tags")
struct FGameplayTagContainerMatchCondition : public FStateTreeConditionCommonBase
Inheritance Hierarchy
- FStateTreeNodeBase → FStateTreeConditionBase → FStateTreeConditionCommonBase → FGameplayTagContainerMatchCondition
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FGameplayTagContainerMatchCondition() |
Conditions/StateTreeGameplayTagConditions.h |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| FInstanceDataType | FGameplayTagContainerMatchConditionInstanceData | Conditions/StateTreeGameplayTagConditions.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bExactMatch | bool | If true, the tag has to be exactly present, if false then TagContainer will include it's parent tags while matching | Conditions/StateTreeGameplayTagConditions.h |
|
| bInvert | bool | Conditions/StateTreeGameplayTagConditions.h |
|
|
| MatchType | EGameplayContainerMatchType | Conditions/StateTreeGameplayTagConditions.h |
|
Functions
Public
Overridden from FStateTreeConditionBase
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool TestCondition
(
FStateTreeExecutionContext& Context |
Conditions/StateTreeGameplayTagConditions.h |
Overridden from FStateTreeNodeBase
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FText GetDescription
(
const FGuid& ID, |
Returns description for the node, use in the UI. | Conditions/StateTreeGameplayTagConditions.h | |
virtual FColor GetIconColor() |
Conditions/StateTreeGameplayTagConditions.h | ||
virtual FName GetIconName() |
Conditions/StateTreeGameplayTagConditions.h | ||
virtual const UStruct * GetInstanceDataType() |
Conditions/StateTreeGameplayTagConditions.h |