UAbilitySystemComponent::ApplyModToAttributeUnsafe

Applies an inplace mod to the given attribute.

Windows
MacOS
Linux

References

Module

GameplayAbilities

Header

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

Include

#include "AbilitySystemComponent.h"

Source

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

Syntax

void ApplyModToAttributeUnsafe
(
    const FGameplayAttribute & Attribute,
    TEnumAsByte< EGameplayModOp::Type > ModifierOp,
    float ModifierMagnitude
)

Remarks

Applies an inplace mod to the given attribute. Unlike ApplyModToAttribute this function will run on the client or server. This may result in problems related to prediction and will not roll back properly.

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