Navigation
API > API/Plugins > API/Plugins/GameplayAbilities > API/Plugins/GameplayAbilities/UGameplayModMagnitudeCalculation
Description
Calculate the base magnitude of the gameplay effect modifier, given the specified spec. Note that the owning spec def can still modify this base value with a coeffecient and pre/post multiply adds. see FCustomCalculationBasedFloat::CalculateMagnitude for details.
| Name | CalculateBaseMagnitude |
| Type | function |
| Header File | /Engine/Plugins/Runtime/GameplayAbilities/Source/GameplayAbilities/Public/GameplayModMagnitudeCalculation.h |
| Include Path | #include "GameplayModMagnitudeCalculation.h" |
UFUNCTION (BlueprintNativeEvent, Category="Calculation")
float CalculateBaseMagnitude
(
const FGameplayEffectSpec & Spec
) const
Computed magnitude of the modifier
Parameters
| Name | Remarks |
|---|---|
| Spec | Gameplay effect spec to use to calculate the magnitude with |