UDecalComponent::SetFadeOut

Sets the decal's fade start time, duration and if the owning actor should be destroyed after the decal is fully faded out.

Choose your operating system:

Windows

macOS

Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Components/DecalComponent.h

Include

#include "Components/DecalComponent.h"

Source

/Engine/Source/Runtime/Engine/Private/Components/DecalComponent.cpp

Syntax

void SetFadeOut
(
    float StartDelay,
    float Duration,
    bool DestroyOwnerAfterFade
)

Remarks

Sets the decal's fade start time, duration and if the owning actor should be destroyed after the decal is fully faded out. The default value of 0 for FadeStartDelay and FadeDuration makes the decal persistent. See DecalLifetimeOpacity material node to control the look of "fading out."

Parameters

Parameter

Description

StartDelay

Time in seconds to wait before beginning to fade out the decal.

Duration

Time in second for the decal to fade out.

DestroyOwnerAfterFade

Should the owning actor automatically be destroyed after it is completely faded out.