FAggregatorModChannel::ReverseEvaluate

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

Choose your operating system:

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

bool ReverseEvaluate
(
    float FinalValue,
    const FAggregatorEvaluateParameters & Parameters,
    OUT float & ComputedValue
) const

Remarks

Evaluates a final value in reverse, attempting to determine a base value from the modifiers within the channel. Certain conditions (such as the use of override mods) can prevent this from computing correctly, at which point false will be returned. 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

True if the reverse evaluation was successful, false if it was not

Parameters

Parameter

Description

FinalValue

Final value to reverse evaluate

Parameters

Evaluation parameters to use for the reverse evaluation

ComputedValue

[OUT] Reverse evaluated base value