UGameplayAbility::ShouldReplicateAbilitySpec

Takes in the ability spec and checks if we should allow replication on the ability spec, this will NOT stop replication of the ability [UObject](API\Runtime\CoreUObject\UObject\UObject) just the spec inside the UAbilitySystemComponenet ActivatableAbilities for this ability

Windows
MacOS
Linux

References

Module

GameplayAbilities

Header

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

Include

#include "Abilities/GameplayAbility.h"

Syntax

virtual bool ShouldReplicateAbilitySpec
(
    const FGameplayAbilitySpec & AbilitySpec
) const

Remarks

Takes in the ability spec and checks if we should allow replication on the ability spec, this will NOT stop replication of the ability UObject just the spec inside the UAbilitySystemComponenet ActivatableAbilities for this ability

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss