UGameplayAbility::CheckCost

Checks cost. returns true if we can pay for the ability. False if not

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

virtual bool CheckCost
(
    const FGameplayAbilitySpecHandle Handle,
    const FGameplayAbilityActorInfo * ActorInfo,
    OUTFGameplayTagContainer * OptionalRelevantTags
) const

Remarks

Checks cost. returns true if we can pay for the ability. False if not