FGameplayEffectSpec::SetDuration

Sets duration.

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

void SetDuration
(
    float NewDuration,
    bool bLockDuration
)

Remarks

Sets duration. This should only be called as the GameplayEffect is being created and applied; Ignores calls after attribute capture