unreal.GameplayEffectGrantedAbilityRemovePolicy

class unreal.GameplayEffectGrantedAbilityRemovePolicy

Bases: EnumBase

Describes what happens when a GameplayEffect, that is granting an active ability, is removed from its owner.

C++ Source:

  • Plugin: GameplayAbilities

  • Module: GameplayAbilities

  • File: GameplayAbilitySpec.h

CANCEL_ABILITY_IMMEDIATELY: GameplayEffectGrantedAbilityRemovePolicy

Active abilities are immediately canceled and the ability is removed.

Type:

0

DO_NOTHING: GameplayEffectGrantedAbilityRemovePolicy

Granted abilities are left lone when the granting GameplayEffect is removed.

Type:

2

REMOVE_ABILITY_ON_END: GameplayEffectGrantedAbilityRemovePolicy

Active abilities are allowed to finish, and then removed.

Type:

1