FGameplayEffectAttributeCaptureSpec

Struct used to hold the result of a gameplay attribute capture; Initially seeded by definition data, but then populated by ability system component when appropriate

Windows
MacOS
Linux

References

Module

GameplayAbilities

Header

/Engine/Plugins/Runtime/GameplayAbilities/Source/GameplayAbilities/Public/GameplayEffect.h

Include

#include "GameplayEffect.h"

Syntax

[USTRUCT](Programming/UnrealArchitecture/Reference/Structs)()
struct FGameplayEffectAttributeCaptureSpec

Remarks

Struct used to hold the result of a gameplay attribute capture; Initially seeded by definition data, but then populated by ability system component when appropriate

Constructors

Functions

Name Description

Public function Const

bool

 

AttemptAddAggregatorModsToAggregator

(
    OUTFAggregator& OutAggregatorToAdd...
)

Attempts to populate the specified aggregator with all of the mods of the backing captured aggregator.

Public function Const

bool

 

AttemptCalculateAttributeBaseValue

(
    OUT float& OutBaseValue
)

Attempts to calculate the base value of the captured attribute given the specified parameters.

Public function Const

bool

 

AttemptCalculateAttributeBonusMagnitude

(
    const FAggregatorEvaluateParameters...,
    OUT float& OutBonusMagnitude
)

Attempts to calculate the "bonus" magnitude (final - base value) of the captured attribute given the specified parameters.

Public function Const

bool

 

AttemptCalculateAttributeContributionMagnitude

(
    const FAggregatorEvaluateParameters...,
    FActiveGameplayEffectHandle ActiveH...,
    OUT float& OutBonusMagnitude
)

Attempts to calculate the contribution of the specified GE to the captured attribute given the specified parameters.

Public function Const

bool

 

AttemptCalculateAttributeMagnitude

(
    const FAggregatorEvaluateParameters...,
    OUT float& OutMagnitude
)

Attempts to calculate the magnitude of the captured attribute given the specified parameters.

Public function Const

bool

 

AttemptCalculateAttributeMagnitudeUpToChannel

(
    const FAggregatorEvaluateParameters...,
    EGameplayModEvaluationChannel Final...,
    OUT float& OutMagnitude
)

Attempts to calculate the magnitude of the captured attribute given the specified parameters, up to the specified evaluation channel (inclusive).

Public function Const

bool

 

AttemptCalculateAttributeMagnitudeWithBase

(
    const FAggregatorEvaluateParameters...,
    float InBaseValue,
    OUT float& OutMagnitude
)

Attempts to calculate the magnitude of the captured attribute given the specified parameters, including a starting base value.

Public function Const

bool

 

AttemptGatherAttributeMods

Gathers made for a given capture.

Public function Const

bool

 

AttemptGetAttributeAggregatorSnapshot

(
    OUTFAggregator& OutAggregatorSnaps...
)

Attempts to populate the specified aggregator with a snapshot of the backing captured aggregator.

Public function Const

const FGamep...

 

GetBackingDefinition()

Simple accessor to backing capture definition

Public function Const

bool

 

HasValidCapture()

Returns whether the spec actually has a valid capture yet or not

Public function Const

void

 

RegisterLinkedAggregatorCallback

(
    FActiveGameplayEffectHandle Handle
)

Register this handle with linked aggregators

Public function Const

bool

 

ShouldRefreshLinkedAggregator

(
    const FAggregator* ChangedAggr...
)

Return true if this capture should be recalculated if the given aggregator has changed

Public function

void

 

SwapAggregator

(
    FAggregatorRef From,
    FAggregatorRef To
)

Swaps any internal references From aggregator To aggregator. Used when cloning

Public function Const

void

 

UnregisterLinkedAggregatorCallback

(
    FActiveGameplayEffectHandle Handle
)

Unregister this handle with linked aggregators

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