Navigation
API > API/Plugins > API/Plugins/StateTreeModule
HasTag condition Succeeds if the tag container has the specified tag.
Condition can be used with multiple configurations: Does TagContainer {"A.1"} has Tag "A" ? exact match 'false' will SUCCEED exact match 'true' will FAIL
| Name | FGameplayTagMatchCondition |
| Type | struct |
| Header File | /Engine/Plugins/Runtime/StateTree/Source/StateTreeModule/Public/Conditions/StateTreeGameplayTagConditions.h |
| Include Path | #include "Conditions/StateTreeGameplayTagConditions.h" |
Syntax
USTRUCT (DisplayName="Has Tag", Category="Gameplay Tags")
struct FGameplayTagMatchCondition : public FStateTreeConditionCommonBase
Inheritance Hierarchy
- FStateTreeNodeBase → FStateTreeConditionBase → FStateTreeConditionCommonBase → FGameplayTagMatchCondition
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FGameplayTagMatchCondition() |
Conditions/StateTreeGameplayTagConditions.h |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| FInstanceDataType | FGameplayTagMatchConditionInstanceData | 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 |
|
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 |