UGameplayModMagnitudeCalculation::CalculateBaseMagnitude

Calculate the base magnitude of the gameplay effect modifier, given the specified spec.

Windows
MacOS
Linux

References

Module

GameplayAbilities

Header

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

Include

#include "GameplayModMagnitudeCalculation.h"

Syntax

[UFUNCTION](Programming/UnrealArchitecture/Reference/Functions)(BlueprintNativeEvent, Category="Calculation")
float CalculateBaseMagnitude
(
    const FGameplayEffectSpec & Spec
) const

Remarks

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.

Returns

Computed magnitude of the modifier

Parameters

Parameter

Description

Spec

Gameplay effect spec to use to calculate the magnitude with

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss