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

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"

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