Navigation
API > API/Plugins > API/Plugins/GameplayAbilities
Structure to encapsulate magnitudes that are calculated via custom calculation
| Name | FCustomCalculationBasedFloat |
| Type | struct |
| Header File | /Engine/Plugins/Runtime/GameplayAbilities/Source/GameplayAbilities/Public/GameplayEffect.h |
| Include Path | #include "GameplayEffect.h" |
Syntax
USTRUCT ()
struct FCustomCalculationBasedFloat
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FCustomCalculationBasedFloat() |
GameplayEffect.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| CalculationClassMagnitude | TSubclassOf< UGameplayModMagnitudeCalculation > | GameplayEffect.h |
|
|
| Coefficient | FScalableFloat | Coefficient to the custom calculation | GameplayEffect.h |
|
| FinalLookupCurve | FCurveTableRowHandle | If a curve table entry is specified, the OUTPUT of this custom class magnitude (including the pre and post additive values) lookup into the curve instead of using the attribute directly. | GameplayEffect.h |
|
| PostMultiplyAdditiveValue | FScalableFloat | Additive value to the attribute calculation, added in after the coefficient applies | GameplayEffect.h |
|
| PreMultiplyAdditiveValue | FScalableFloat | Additive value to the attribute calculation, added in before the coefficient applies | GameplayEffect.h |
|
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
float CalculateMagnitude
(
const FGameplayEffectSpec& InRelevantSpec |
Calculate and return the magnitude of the float given the specified gameplay effect spec. | GameplayEffect.h | |
EDataValidationResult IsDataValid
(
FDataValidationContext& Context, |
GameplayEffect.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool operator!=
(
const FCustomCalculationBasedFloat& Other |
GameplayEffect.h | ||
bool operator==
(
const FCustomCalculationBasedFloat& Other |
Equality/Inequality operators | GameplayEffect.h |