FGameplayEffectSpec::GetModifierMagnitude

Get the computed magnitude of the modifier on the spec with the specified index

Choose your operating system:

Windows

macOS

Linux

References

Module

GameplayAbilities

Header

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

Include

#include "GameplayEffect.h"

Source

/Engine/Plugins/Runtime/GameplayAbilities/Source/GameplayAbilities/Private/GameplayEffect.cpp

Syntax

float GetModifierMagnitude
(
    int32 ModifierIdx,
    bool bFactorInStackCount
) const

Remarks

Get the computed magnitude of the modifier on the spec with the specified index

Returns

Computed magnitude

Parameters

Parameter

Description

ModifierIndx

Modifier to get

bFactorInStackCount

If true, the calculation will include the stack count