Navigation
API > API/Plugins > API/Plugins/GameplayAbilities > API/Plugins/GameplayAbilities/GameplayEffectComponents
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UGameplayEffectComponent
- UImmunityGameplayEffectComponent
References
| Module | GameplayAbilities |
| Header | /Engine/Plugins/Runtime/GameplayAbilities/Source/GameplayAbilities/Public/GameplayEffectComponents/ImmunityGameplayEffectComponent.h |
| Include | #include "GameplayEffectComponents/ImmunityGameplayEffectComponent.h" |
Syntax
UCLASS (DisplayName="Immunity to Other Effects")
class UImmunityGameplayEffectComponent : public UGameplayEffectComponent
Remarks
Immunity is blocking the application of other GameplayEffectSpecs. This registers a global handler on the ASC to block the application of other GameplayEffectSpecs.
Variables
| Type | Name | Description | |
|---|---|---|---|
| TArray< FGameplayEffectQuery > | ImmunityQueries | Grants immunity to GameplayEffects that match this query. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
| Constructor to set EditorFriendlyName |
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | AllowGameplayEffectApplication
(
const FActiveGameplayEffectsContainer& ActiveGEContainer, |
We register with the AbilitySystemComponent to try and block any GESpecs we think we should be immune to |
Overridden from UGameplayEffectComponent
| Type | Name | Description | |
|---|---|---|---|
| bool | OnActiveGameplayEffectAdded
(
FActiveGameplayEffectsContainer& ActiveGEContainer, |
We need to register our callback to check for Immunity |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| EDataValidationResult | IsDataValid
(
FDataValidationContext& Context |
Warn about instant Gameplay Effects as they do not persist over time (and therefore cannot grant immunity) |