FGameplayEffectCustomExecutionParameters::AttemptCalculateCapturedAttributeMagnitude

Attempts to calculate the magnitude of a captured attribute given the specified parameters.

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 AttemptCalculateCapturedAttributeMagnitude
(
    const FGameplayEffectAttributeCaptureDefinition & InCaptureDef,
    const FAggregatorEvaluateParameters & InEvalParams,
    OUT float & OutMagnitude
) const

Remarks

Attempts to calculate the magnitude of a captured attribute given the specified parameters. Can fail if the gameplay spec doesn't have a valid capture for the attribute.

Returns

True if the magnitude was successfully calculated, false if it was not

Parameters

Parameter

Description

InCaptureDef

Attribute definition to attempt to calculate the magnitude of

InEvalParams

Parameters to evaluate the attribute under

OutMagnitude

[OUT] Computed magnitude

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