UGameplayAbility::K2_CommitAbility

CommitAbility

Choose your operating system:

Windows

macOS

Linux

References

Module

GameplayAbilities

Header

/Engine/Plugins/Runtime/GameplayAbilities/Source/GameplayAbilities/Public/Abilities/GameplayAbility.h

Include

#include "Abilities/GameplayAbility.h"

Source

/Engine/Plugins/Runtime/GameplayAbilities/Source/GameplayAbilities/Private/Abilities/GameplayAbility.cpp

Syntax

UFUNCTION(BlueprintCallable, Category=Ability, DisplayName="CommitAbility",
          Meta=(ScriptName="CommitAbility"))
virtual bool K2_CommitAbility()

Remarks

CommitAbility

Attempts to commit the ability (spend resources, etc). This our last chance to fail. Child classes that override ActivateAbility must call this themselves!

Fixme: Naming is confusing here