Navigation
API > API/Plugins > API/Plugins/GameplayAbilities > API/Plugins/GameplayAbilities/FGameplayEffectAttributeCaptureS-
Description
Attempts to calculate the magnitude of the captured attribute given the specified parameters, up to the specified evaluation channel (inclusive). Can fail if the spec doesn't have a valid capture yet.
| Name | AttemptCalculateAttributeMagnitudeUpToChannel |
| Type | function |
| Header File | /Engine/Plugins/Runtime/GameplayAbilities/Source/GameplayAbilities/Public/GameplayEffect.h |
| Include Path | #include "GameplayEffect.h" |
| Source | /Engine/Plugins/Runtime/GameplayAbilities/Source/GameplayAbilities/Private/GameplayEffect.cpp |
bool AttemptCalculateAttributeMagnitudeUpToChannel
(
const FAggregatorEvaluateParameters & InEvalParams,
EGameplayModEvaluationChannel FinalChannel,
float & OutMagnitude
) const
True if the magnitude was successfully calculated, false if it was not
Parameters
| Name | Remarks |
|---|---|
| InEvalParams | Parameters to evaluate the attribute under |
| FinalChannel | Evaluation channel to terminate the calculation at |
| OutMagnitude | [OUT] Computed magnitude |