FCustomCalculationBasedFloat

Structure to encapsulate magnitudes that are calculated via custom calculation

Choose your operating system:

Windows

macOS

Linux

References

Module

GameplayAbilities

Header

/Engine/Plugins/Runtime/GameplayAbilities/Source/GameplayAbilities/Public/GameplayEffect.h

Include

#include "GameplayEffect.h"

Syntax

USTRUCT()
struct FCustomCalculationBasedFloat

Remarks

Structure to encapsulate magnitudes that are calculated via custom calculation

Variables

Name Description

Public variable UProperty Category, EditDefaultsOnly displayname

TSubclassOf< UG...

 

CalculationClassMagnitude

Public variable UProperty Category, EditDefaultsOnly

FScalableFloat

 

Coefficient

Coefficient to the custom calculation

Public variable UProperty Category, EditDefaultsOnly

FCurveTableRowH...

 

FinalLookupCurve

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.

Public variable UProperty Category, EditDefaultsOnly

FScalableFloat

 

PostMultiplyAdditiveValue

Additive value to the attribute calculation, added in after the coefficient applies

Public variable UProperty Category, EditDefaultsOnly

FScalableFloat

 

PreMultiplyAdditiveValue

Additive value to the attribute calculation, added in before the coefficient applies

Constructors

Functions

Name Description

Public function Const

float

 

CalculateMagnitude

(
    const FGameplayEffectSpec& InRelev...
)

Calculate and return the magnitude of the float given the specified gameplay effect spec.

Operators

Name Description

Public function Const

bool

 

operator!=

(
    const FCustomCalculationBasedFloat ...
)

Public function Const

bool

 

operator==

(
    const FCustomCalculationBasedFloat ...
)

Equality/Inequality operators