Navigation
API > API/Plugins > API/Plugins/GameplayAbilities > API/Plugins/GameplayAbilities/UAbilitySystemComponent
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 |
UFUNCTION&40;BlueprintCallable, BlueprintPure, Category&61;GameplayEffects&41;
int32 GetGameplayEffectCount
&40;
TSubclassOf< UGameplayEffect > SourceGameplayEffect,
UAbilitySystemComponent &42; OptionalInstigatorFilterComponent,
bool bEnforceOnGoingCheck
&41; const
Remarks
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. Count of the specified source effect
Parameters
| Name | Description |
|---|---|
| SourceGameplayEffect | Effect to get the count of |
| OptionalInstigatorFilterComponent | If specified, only count effects applied by this ability system component |