FGameplayEffectCustomExecutionParameters::AttemptGatherAttributeMods

Returns all modifiers for a given captured def.

Windows
MacOS
Linux

References

Module

GameplayAbilities

Header

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

Include

#include "GameplayEffectExecutionCalculation.h"

Source

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

Syntax

bool AttemptGatherAttributeMods
(
    const FGameplayEffectAttributeCaptureDefinition & InCaptureDef,
    const FAggregatorEvaluateParameters & InEvalParams,
    OUTTMap< EGameplayModEvaluationChannel, const TArray< FAggregatorMod > * > & OutModMap
) const

Remarks

Returns all modifiers for a given captured def. Note the returned list is a direct reference to the internal list stored in the attribute aggregators (possibly a snapshot copy or possibly the "real" ones). Also note that all modifiers are returned, even ones that do not qualify for the given InEvalParams. You will still need to check ::Qualifies() on the mods themselves to see if they "count". (we are returning a direct reference to the internal mod list, so we do not want to remove them or force a copy).

Consider using ForEachQualifiedAttributeMod when you want to "do something for every qualifier mod".

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