UAttributeSet::PreAttributeBaseChange

This is called just before any modification happens to an attribute's base value when an attribute aggregator exists.

Windows
MacOS
Linux

References

Module

GameplayAbilities

Header

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

Include

#include "AttributeSet.h"

Syntax

virtual void PreAttributeBaseChange
(
    const FGameplayAttribute & Attribute,
    float & NewValue
) const

Remarks

This is called just before any modification happens to an attribute's base value when an attribute aggregator exists. This function should enforce clamping (presuming you wish to clamp the base value along with the final value in PreAttributeChange) This function should NOT invoke gameplay related events or callbacks. Do those in PreAttributeChange() which will be called prior to the final value of the attribute actually changing.

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