GameplayTags
are just small bits of text that describes states (or buffs) for the player or attributes that can attach to things such as GameplayAbilities
and also to describe GameplayEffects
, as well as states that clear those effects. So, we can have GameplayTags
, such as Healing
or Stimmed
, that trigger various GameplayAbilities
or GameplayEffects
to our liking. We can also search for things via GameplayTags
and attach them to our AbilitySystemComponents
if we choose.
There are several steps to getting GameplayTags
to work correctly inside your engine build; they are as follows:
First, we will need to create a Data Table asset to carry all of our game's tag names. Right-click on Content Browser and select Miscellaneous | Data Table. Select a table class structure deriving from
GameplayTagTableRow
.List all tags available inside your game under that data structure.
Add
UPROPERTY() TArray<FString>
to yourGameMode
object...