UGameplayAbility::ApplyGameplayEffectToTarget

Non blueprintcallable, safe to call on CDO/NonInstance abilities

Choose your operating system:

Windows

macOS

Linux

References

Module

GameplayAbilities

Header

/Engine/Plugins/Runtime/GameplayAbilities/Source/GameplayAbilities/Public/Abilities/GameplayAbility.h

Include

#include "Abilities/GameplayAbility.h"

Source

/Engine/Plugins/Runtime/GameplayAbilities/Source/GameplayAbilities/Private/Abilities/GameplayAbility.cpp

Syntax

TArray< FActiveGameplayEffectHandle > ApplyGameplayEffectToTarget
(
    const FGameplayAbilitySpecHandle Handle,
    const FGameplayAbilityActorInfo * ActorInfo,
    const FGameplayAbilityActivationInfo ActivationInfo,
    const FGameplayAbilityTargetDataHandle & Target,
    TSubclassOf< UGameplayEffect > GameplayEffectClass,
    float GameplayEffectLevel,
    int32 Stacks
) const

Remarks

Non blueprintcallable, safe to call on CDO/NonInstance abilities