FGameplayEffectSpec::AttemptCalculateDurationFromDef

Helper function to attempt to calculate the duration of the spec from its GE definition

Choose your operating system:

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

bool AttemptCalculateDurationFromDef
(
    OUT float & OutDefDuration
) const

Remarks

Helper function to attempt to calculate the duration of the spec from its GE definition

Returns

True if the calculation was successful, false if it was not

Parameters

Parameter

Description

OutDefDuration

Computed duration of the spec from its GE definition; Not the actual duration of the spec