Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UDecalComponent
Description
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."
| Name | SetFadeOut |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Components/DecalComponent.h |
| Include Path | #include "Components/DecalComponent.h" |
| Source | /Engine/Source/Runtime/Engine/Private/Components/DecalComponent.cpp |
UFUNCTION (BlueprintCallable, Category="Rendering|Components|Decal")
void SetFadeOut
(
float StartDelay,
float Duration,
bool DestroyOwnerAfterFade
)
Parameters
| Name | Remarks |
|---|---|
| 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. |