The GameplayAbilities
API allows you to associate a set of attributes, that is, UAttributeSet
, to an Actor. UAttributeSet
describes properties appropriate for that Actor's in-game attributes, such as Hp
, Mana
, Speed
, Armor
, AttackDamage
, and so on. You can either define a single game-wide set of attributes common to all Actors, or several different sets of attributes appropriate for the different classes of actors.
AbilitySystemComponent
is the first thing you will need to add to your actors to equip them to use GameAbilities API and UAttributeSet
s. To define your custom UAttributeSet
, you will simply derive from the UAttributeSet
base class and extend the base class with your own series of UPROPERTY
members. After that, you must register your custom AttributeSet
with your Actor
class' AbilitySystemComponent
.