Navigation
API > API/Plugins > API/Plugins/GameplayAbilities > API/Plugins/GameplayAbilities/UAbilitySystemComponent
Description
Get the count of the specified source effect on the ability system component. For non-stacking effects, this is the sum of all active instances. For stacking effects, this is the sum of all valid stack counts. If an instigator is specified, only effects from that instigator are counted.
| Name | GetGameplayEffectCount |
| 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 |
UFUNCTION (BlueprintCallable, BlueprintPure, Category=GameplayEffects)
int32 GetGameplayEffectCount
(
TSubclassOf < UGameplayEffect > SourceGameplayEffect,
UAbilitySystemComponent * OptionalInstigatorFilterComponent,
bool bEnforceOnGoingCheck
) const
Count of the specified source effect
Parameters
| Name | Remarks |
|---|---|
| SourceGameplayEffect | Effect to get the count of |
| OptionalInstigatorFilterComponent | If specified, only count effects applied by this ability system component |