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.

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.

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