Navigation
API > API/Plugins > API/Plugins/GameplayAbilities
References
| Module | GameplayAbilities |
| Header | /Engine/Plugins/Runtime/GameplayAbilities/Source/GameplayAbilities/Public/AttributeSet.h |
| Include | #include "AttributeSet.h" |
Syntax
USTRUCT (BlueprintType )
struct FGameplayAttributeData
Remarks
Place in an AttributeSet to create an attribute that can be accesed using FGameplayAttribute. It is strongly encouraged to use this instead of raw float attributes
Variables
| Type | Name | Description | |
|---|---|---|---|
| float | BaseValue | ||
| float | CurrentValue |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FGameplayAttributeData
(
float DefaultValue |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| float | GetBaseValue () |
Returns the base value which only includes permanent changes | |
| float | Returns the current value, which includes temporary buffs | ||
| void | SetBaseValue
(
float NewValue |
Modifies the permanent base value, normally only called by ability system or during initialization | |
| void | SetCurrentValue
(
float NewValue |
Modifies current value, normally only called by ability system or during initialization |