Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Plugins/Runtime/GameplayAbilities/Source/GameplayAbilities/Public/AttributeSet.h |
Include |
#include "AttributeSet.h" |
USTRUCT(BlueprintType)
struct FGameplayAttributeData
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
Name | Description | ||
---|---|---|---|
|
float |
BaseValue |
|
|
float |
CurrentValue |
Name | Description | |
---|---|---|
|
FGameplayAttributeData() |
|
|
FGameplayAttributeData ( |
Name | Description | |
---|---|---|
|
~FGameplayAttributeData() |
Name | Description | ||
---|---|---|---|
|
float |
GetBaseValue() |
Returns the base value which only includes permanent changes |
|
float |
GetCurrentValue() |
Returns the current value, which includes temporary buffs |
|
SetBaseValue ( |
Modifies the permanent base value, normally only called by ability system or during initialization |
|
|
SetCurrentValue ( |
Modifies current value, normally only called by ability system or during initialization |