Navigation
API > API/Plugins > API/Plugins/GameplayAbilities > API/Plugins/GameplayAbilities/UGameplayEffectComponent
Description
Can the GameplayEffectSpec apply to the passed-in ASC? All Components of the GE must return true, or a single one can return false to prohibit the application. Note: Application and Inhibition are two separate things. If a GE can apply, we then either Add it (if it has duration/prediction) or Execute it (if it's instant).
Derived Overrides
- UChanceToApplyGameplayEffectComponent::CanGameplayEffectApply
- UCustomCanApplyGameplayEffectComponent::CanGameplayEffectApply
- UTargetTagRequirementsGameplayEffectComponent::CanGameplayEffectApply
| Name | CanGameplayEffectApply |
| Type | function |
| Header File | /Engine/Plugins/Runtime/GameplayAbilities/Source/GameplayAbilities/Public/GameplayEffectComponent.h |
| Include Path | #include "GameplayEffectComponent.h" |
virtual bool CanGameplayEffectApply
(
const FActiveGameplayEffectsContainer & ActiveGEContainer,
const FGameplayEffectSpec & GESpec
) const