FGameplayEffectAttributeCaptureSpecContainer::FindCaptureSpecByDefinition

Find a capture spec within the container matching the specified capture definition, if possible.

Windows
MacOS
Linux

References

Module

GameplayAbilities

Header

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

Include

#include "GameplayEffect.h"

Source

/Engine/Plugins/Runtime/GameplayAbilities/Source/GameplayAbilities/Private/GameplayEffect.cpp

Syntax

const FGameplayEffectAttributeCaptureSpec * FindCaptureSpecByDefinition
(
    const FGameplayEffectAttributeCaptureDefinition & InDefinition,
    bool bOnlyIncludeValidCapture
) const

Remarks

Find a capture spec within the container matching the specified capture definition, if possible.

Returns

The found attribute spec matching the specified search params, if any

Parameters

Parameter

Description

InDefinition

Capture definition to use as the search basis

bOnlyIncludeValidCapture

If true, even if a spec is found, it won't be returned if it doesn't also have a valid capture already

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