Navigation
API > API/Plugins > API/Plugins/GameplayAbilities
References
| Module | GameplayAbilities |
| Header | /Engine/Plugins/Runtime/GameplayAbilities/Source/GameplayAbilities/Public/GameplayEffect.h |
| Include | #include "GameplayEffect.h" |
Syntax
USTRUCT&40;&41;
struct FAttributeBasedFloat
Remarks
Struct representing a float whose magnitude is dictated by a backing attribute and a calculation policy, follows basic form of: (Coefficient * (PreMultiplyAdditiveValue + [Eval'd Attribute Value According to Policy])) + PostMultiplyAdditiveValue
Variables
| Type | Name | Description | |
|---|---|---|---|
| EAttributeBasedFloatCalculationType | AttributeCalculationType | Calculation policy in regards to the attribute | |
| FCurveTableRowHandle | AttributeCurve | If a curve table entry is specified, the attribute will be used as a lookup into the curve instead of using the attribute directly. | |
| FGameplayEffectAttributeCaptureDefinition | BackingAttribute | Attribute backing the calculation | |
| FScalableFloat | Coefficient | Coefficient to the attribute calculation | |
| EGameplayModEvaluationChannel | FinalChannel | Channel to terminate evaluation on when using AttributeEvaluatedUpToChannel calculation type | |
| FScalableFloat | PostMultiplyAdditiveValue | Additive value to the attribute calculation, added in after the coefficient applies | |
| FScalableFloat | PreMultiplyAdditiveValue | Additive value to the attribute calculation, added in before the coefficient applies | |
| FGameplayTagContainer | SourceTagFilter | Filter to use on source tags; If specified, only modifiers applied with all of these tags will factor into the calculation | |
| FGameplayTagContainer | TargetTagFilter | Filter to use on target tags; If specified, only modifiers applied with all of these tags will factor into the calculation |
Constructors
| Type | Name | Description | |
|---|---|---|---|
| Constructor |
Functions
| Type | Name | Description | |
|---|---|---|---|
| float | CalculateMagnitude
(
const FGameplayEffectSpec& InRelevantSpec |
Calculate and return the magnitude of the float given the specified gameplay effect spec. |
Operators
| Type | Name | Description | |
|---|---|---|---|
| bool | operator!=
(
const FAttributeBasedFloat& Other |
||
| bool | operator==
(
const FAttributeBasedFloat& Other |
Equality/Inequality operators |