Navigation
API > API/Plugins > API/Plugins/GameplayAbilities > API/Plugins/GameplayAbilities/UAbilitySystemComponent
Description
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.
| Name | ApplyModToAttributeUnsafe |
| Type | function |
| Header File | /Engine/Plugins/Runtime/GameplayAbilities/Source/GameplayAbilities/Public/AbilitySystemComponent.h |
| Include Path | #include "AbilitySystemComponent.h" |
| Source | /Engine/Plugins/Runtime/GameplayAbilities/Source/GameplayAbilities/Private/AbilitySystemComponent.cpp |
void ApplyModToAttributeUnsafe
(
const FGameplayAttribute & Attribute,
TEnumAsByte < EGameplayModOp::Type > ModifierOp,
float ModifierMagnitude
)