Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Plugins/Runtime/GameplayAbilities/Source/GameplayAbilities/Public/GameplayEffect.h |
Include |
#include "GameplayEffect.h" |
USTRUCT()
struct FGameplayEffectModifierMagnitude
Struct representing the magnitude of a gameplay effect modifier, potentially calculated in numerous different ways
Name | Description | ||
---|---|---|---|
|
AttributeBasedMagnitude |
Magnitude value represented by an attribute-based float (Coefficient * (PreMultiplyAdditiveValue + [Eval'd Attribute Value According to Policy])) + PostMultiplyAdditiveValue |
|
|
CustomMagnitude |
Magnitude value represented by a custom calculation class |
|
|
MagnitudeCalculationType |
Type of calculation to perform to derive the magnitude |
|
|
ScalableFloatMagnitude |
Magnitude value represented by a scalable float |
|
|
SetByCallerMagnitude |
Magnitude value represented by a SetByCaller magnitude |
Name | Description | |
---|---|---|
|
FGameplayEffectModifierMagnitude() |
Default Constructor |
|
FGameplayEffectModifierMagnitude ( |
Constructors for setting value in code (for automation tests) |
|
FGameplayEffectModifierMagnitude ( |
|
|
FGameplayEffectModifierMagnitude ( |
|
|
FGameplayEffectModifierMagnitude ( |
Name | Description | ||
---|---|---|---|
|
AttemptCalculateMagnitude ( |
Attempts to calculate the magnitude given the provided spec. |
|
|
AttemptRecalculateMagnitudeFromDependentAggregatorChange ( |
Attempts to recalculate the magnitude given a changed aggregator. |
|
|
CanCalculateMagnitude ( |
Determines if the magnitude can be properly calculated with the specified gameplay effect spec (could fail if relying on an attribute not present, etc.) |
|
|
GetAttributeCaptureDefinitions ( |
Gather all of the attribute capture definitions necessary to compute the magnitude and place them into the provided array |
|
|
TSubclassOf<... |
GetCustomMagnitudeCalculationClass() |
Returns the custom magnitude calculation class, if any, for this magnitude. |
|
EGameplayEff... |
GetMagnitudeCalculationType() |
|
|
GetSetByCallerDataNameIfPossible ( |
Returns the DataName associated with this magnitude if it is set by caller |
|
|
const FSetBy... |
GetSetByCallerFloat() |
Returns SetByCaller data structure, for inspection purposes |
|
GetStaticMagnitudeIfPossible ( |
Returns the magnitude as it was entered in data. |
|
|
GetValueForEditorDisplay() |
||
|
ReportErrors ( |
||
|
Serialize ( |
Implementing Serialize to clear references to assets that are not needed |
Name | Description | ||
---|---|---|---|
|
operator!= ( |
||
|
operator== ( |