FAggregatorModChannelContainer::ReverseEvaluate

Evaluates a final value in reverse, attempting to determine a base value from the modifiers within all of the channels.

Windows
MacOS
Linux

References

Module

GameplayAbilities

Header

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

Include

#include "GameplayEffectAggregator.h"

Source

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

Syntax

float ReverseEvaluate
(
    float FinalValue,
    const FAggregatorEvaluateParameters & Parameters
) const

Remarks

Evaluates a final value in reverse, attempting to determine a base value from the modifiers within all of the channels. The operation proceeds through all channels in reverse order, with the result of the evaluation of an individual channel used as the new final value to the channel that precedes it numerically. If any channel has a condition that prevents it from computing correctly (such as an override mod), this function just returns the original final value. This is predominantly used for filling in base values on clients from replication for float-based attributes.

@note This will be deprecated/removed soon with the transition to struct-based attributes.

Returns

If possible, the base value from the reverse evaluation. If not possible, the original final value is returned.

Parameters

Parameter

Description

FinalValue

Final value to reverse evaluate

Parameters

Evaluation parameters to use for the reverse evaluation

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