GameplayTags API – Attaching GameplayTags to an Actor
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.
How to do it…
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 ...
Get Unreal Engine 4 Scripting with C++ Cookbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.